You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2013/05/20 09:44:40 UTC
[3/3] git commit: MARMOTTA-228: adapted prefix widgets
MARMOTTA-228: adapted prefix widgets
Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/4d7c5222
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/4d7c5222
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/4d7c5222
Branch: refs/heads/MARMOTTA-228
Commit: 4d7c52228c44daa3975ffd8d405b1ed82c1c1b77
Parents: 6b733d5
Author: Sergio Fernández <wi...@apache.org>
Authored: Mon May 20 09:42:56 2013 +0200
Committer: Sergio Fernández <wi...@apache.org>
Committed: Mon May 20 09:42:56 2013 +0200
----------------------------------------------------------------------
.../src/main/resources/web/admin/prefixes.html | 77 ++++++++++-----
1 files changed, 50 insertions(+), 27 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/4d7c5222/platform/marmotta-core/src/main/resources/web/admin/prefixes.html
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/resources/web/admin/prefixes.html b/platform/marmotta-core/src/main/resources/web/admin/prefixes.html
index 65ae361..42b86ec 100644
--- a/platform/marmotta-core/src/main/resources/web/admin/prefixes.html
+++ b/platform/marmotta-core/src/main/resources/web/admin/prefixes.html
@@ -27,32 +27,54 @@
<div id="main">
<div id="contents">
<!--###BEGIN_CONTENT###-->
- <h1>Prefixes</h1>
- <h2>Management</h2>
- <p>
- Here you can configure the prefix mappings for the RDF namespaces used in Marmotta:
- </p>
- <table id="prefixes" class="simple_table">
- <tr>
- <th>Prefix</th>
- <th>Namespace</th>
- </tr>
- </table>
-
- <h2 style="margin-top: 5em:">New prefix</h2>
- <table id="add-new-prefix" style="margin: 2em auto 0 auto; background-color:#eeeeee; padding:20px; border:1px solid gray;-webkit-border-radius: 3px; border-radius: 3px;">
- <tr>
- <td>Prefix:</td>
- <td><input type="text" size="10" name="prefix" id="new-prefix" /></td>
- </tr>
- <tr>
- <td>Namespace:</td>
- <td><input type="text" size="50" name="prefix" id="new-namespace" /></td>
- </tr>
- </table>
- <p style="width:100%; text-align:center; padding-top:10px; margin-bottom:30px;">
- <input type="submit" id="add-new-prefix-button" value="Add new prefix" />
- </p>
+
+ <div class="span12">
+ <div class="hero-unit">
+ <h2>Prefix mappings management</h2>
+ </div>
+ </div>
+
+ <div class="span12">
+ <div class="unit">
+ <p>
+ Here you can configure the prefix mappings for RDF namespaces used in Marmotta.
+ </p>
+ <table id="prefixes" class="table table-striped table-bordered table-condensed">
+ <tr>
+ <th>Prefix</th>
+ <th>Namespace</th>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ <div class="span12">
+ <div class="unit">
+ <form class="form-horizontal" id="add-new-prefix">
+ <fieldset style="background-color: #eee;">
+ <legend>Add new prefix:</legend>
+ <div class="control-group">
+ <label class="control-label" for="prefix">Prefix:</label>
+ <div class="controls">
+ <input id="new-prefix" type="text" placeholder="prefix" />
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label">Namespace:</label>
+ <div class="controls">
+ <input id="new-namespace" type="text" placeholder="namespace" />
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label">Submit</label>
+ <div class="controls">
+ <input type="submit" value="Add new prefix" />
+ </div>
+ </div>
+ </fieldset>
+ </form>
+ </div>
+ </div>
<script type="text/javascript" src="../../webjars/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
@@ -68,7 +90,7 @@
});
});
- $("#add-new-prefix-button").click(function() {
+ $("#add-new-prefix").submit(function() {
var prefix = $("#new-prefix").val();
var namespace = $("#new-namespace").val();
var url = "../../prefix/" + prefix + "?uri=" + namespace;
@@ -90,6 +112,7 @@
},
dataType: "application/json"
});
+ return false;
});
});