summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/views/metadata/metadataDetails.gsp
blob: 1828bfb526143b722ae8fa6b23eb4817b3561395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

<g:hiddenField name='metadataDetailsAbsPath' id='metadataDetailsAbsPath'
	value='${absPath}' />

<!-- div for metadata table -->
<div></div>


<div id="metadataMessageArea">
	<!--  -->
</div>

<div id="metadataDialogArea">
	<!--  area for generating dialogs -->
</div>

<div id="metadataDetailsArea" class="container-fluid">

	<div class="row">
		<div class="span12">
			<h4>
				<g:message code="text.metadata" />
			</h4>
		</div>
	</div>
	<div class="row alert alert-info">
		<div class="span12">
			<g:message code="heading.metadata" />
		</div>
	</div>

	<div id="detailsToolbar" class="row well">
		<div id="detailsMenu" class="span12 btn-group">
			<button type="button" id="addMetadataButton" value="addMetadata"
				onclick="prepareMetadataDialog()")>
				<g:message code="default.button.create.label" />
			</button>
			<button type="button" id="deleteMetadataButton"
				value="deleteMetadata" onclick="deleteMetadata()")>
				<g:message code="default.button.delete.label" />
			</button>
			<button type="button" id="reloadAclButton" value="reloadMetadata"
				onclick="reloadMetadataDetailsTable()")>
				<g:message code="default.button.reload.label" />
			</button>
		</div>
	</div>
	<div class="row">
		<div id="metadataTableDiv" class="span12">
			<!--  table goes here -->
		</div>
	</div>
</div>

<script type="text/javascript">
	var origData = "";

	var path = $("#metadataDetailsAbsPath").val();
	if (path == null) {
		path = baseAbsPath;
	}

	$(function() {

		reloadMetadataDetailsTable(path);
	});
</script>