Project

General

Profile

Revision 7892

View differences:

lib/style/common/templates/metacatui/genericResponse.tmpl
1 1
[% INCLUDE $templates.header %]
2 2

  
3
    [% IF status == 'success' %]
3
	<!-- CONTENT SECTION
4
    ======================================================================= -->
5
	<article id="ReistryResponse">
6
		<div class="container">
7
		
8
			<div class="row-fluid">
9

  
10
	[% IF status == 'success' %]
4 11
        
5
     <table class="intro" cellpadding="8" cellspacing="0">
6

  
7
     <tr><td align="left"><span class="emphasis">Success</span></td></tr>
8
	[% IF function == 'deleted' %]
9
            <tr><td align="left"><span class="regtext">Your data set description has been [% function  %].  Thank you.</span></td></tr>
12
     	<h2>Success</h2>
13
	    <p class="lead">Your data set description has been [% function  %].  Thank you.</p>
14
		[% IF function == 'deleted' %]
15
			<!-- no pointer to deleted content -->
10 16
        [%ELSE%]
11
	    <tr><td align="left"><span class="regtext">Your data set description has been [% function  %].  Thank you.</span></td></tr>
12
            <tr><td align="left"><span class="regtext">View the <a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]">data set description</a>.</span></td></tr> 	   
17
            <p>View the <a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]"> data set description</a>.</p> 	   
13 18
        [%END%]
14
      </table>
15 19
    [% ELSE %]
16 20
    	[%  IF function == 'cancel' %]
17 21

  
18
	 [% ELSE %]
19
		<table class="intro" cellpadding="8" cellspacing="0">
20
	          <tr><td align="left"><span class="emphasis">Failure</span></td></tr>
21
        
22
	          <tr><td align="left"><span class="regtext">An error occurred. Please check the list of errors below: </span></td></tr>
23
                  <tr><td align="left">
24
                      <ul>
25
                      [% FOREACH parameter = invalidParams %]
26
                     <li class="label">[% parameter %]</li>
27
                      [% END %]
28
                  </ul></td></tr>
29
                  <tr><td align="left">
30
                  <ul>
31
                      [% FOREACH msg = errorMessages %]
32
                      <li class="label">[% msg %]</li>
33
                      [% END %]
34
                  </ul></td></tr>
35
	       </table>
36
     [% END %]
22
	 	[% ELSE %]
23
			<h2>Failure</h2>
24
			<p class="lead">An error occurred. Please check the list of errors below: </p>
25
			<ul>
26
				[% FOREACH parameter = invalidParams %]
27
					<li>[% parameter %]</li>
28
				[% END %]
29
			</ul>
30
			<ul>
31
				[% FOREACH msg = errorMessages %]
32
					<li>[% msg %]</li>
33
				[% END %]
34
			</ul>
35
		[% END %]
37 36
    [% END %]
37
    
38 38
    [% IF status == 'login_failure' %]
39
        <table class="intro" cellpadding="8" cellspacing="0">
40
            <tr><td align="left"><span class="regtext">Click <a href = "javascript:history.back()">here</a> to return
41
            to the previous page, and enter the correct username, organization, and password.</td></tr> 
42
        </table>
39
		<p>Click <a href = "javascript:history.back()">here</a> to return 
40
        to the previous page, and enter the correct username, organization, and password.</p>
43 41
    [% ELSE %]
44 42
        [% IF function == 'deleted' || function == 'cancel' %]
45
            <table class="intro" cellpadding="8" cellspacing="0">
46 43
            [% IF status != 'success' %]   
47
            <tr><td align="left"><span class="regtext">Click <a href = "javascript:history.back()">here</a> to return
48
            to the previous page, and enter the correct username, organization, and password.</td></tr> 
44
	            <p>Click <a href = "javascript:history.back()">here</a> to return
45
	            to the previous page, and enter the correct username, organization, and password.</p> 
49 46
            [%ELSE%]
50
                <tr><td align="left"><span class="regtext">Or, <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]" target="_top">register a new data set</a>.
51
		Otherwise, use the toolbar links above to navigate.</span></td></tr>
47
                <p>Or, <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]" target="_top">register a new data set</a>.
48
				Otherwise, use the toolbar links above to navigate.</p>
52 49
            [%END%]
53
            </table>
54 50
        [% ELSE %]
55
            [% IF status == 'success' %]
56
                <table class="intro" cellpadding="8" cellspacing="0">
57
                    <tr><td align="left"><span class="regtext">Or, <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]" target="_top">register a new data set</a>.
58
                    Otherwise, use the toolbar links above to navigate.</span></td></tr>
59
                </table>
51
			[% IF status == 'success' %]
52
				<p>Or, <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]" target="_top">register a new data set</a>.
53
				Otherwise, use the toolbar links above to navigate.</p>
60 54
            [% ELSE %]
61 55
                [% IF status != 'failure_no_resubmit' %]
62 56
                    <form name="editForm" action="[% cgiPrefix %]/register-dataset.cgi" method="post">
......
226 220
            [% END %]
227 221
        [% END %]
228 222
    [% END %]
223
    
224
    			</div>
225
    
226
    		</div>
227
	</article>
228
	
229 229
[% INCLUDE $templates.footer %]

Also available in: Unified diff