show-profile.html 5.57 KB
Newer Older
1
<div class='row'>
2 3 4
  <div class='col-lg-3
              col-md-3
              col-sm-3'>
5
    <div class='panel panel-default'>
6 7 8 9 10 11 12
      <div class='panel-heading'>
        <h4 class='panel-title text-center'>Show Profile</h4>
      </div>
      <div class='panel-body'
	   style='overflow: hidden; padding-left: 5px; padding-right: 5px'>
	<table class='table-condensed nospaceafter'
	       style='font-size:12px;'>
13 14 15 16 17
	  <tr>
	    <td>Name:</td>
	    <td><%- fields.profile_name %></td>
	  </tr>
	  <tr>
18
	    <td>Version:</td><td>
19 20 21 22 23 24 25
	      <% if (history) { %>
		<a href='profile-history.php?uuid=<%= profile_uuid %>'>
	  	  <%- fields.profile_version %></a>
	      <% } else { %>
		<%- fields.profile_version %>
	      <% } %>
	    </td></tr>
26 27 28 29 30 31 32
	  <tr>
	    <td>Project:</td>
	    <td><%- fields.profile_pid %></td>
	  </tr>
	  <tr>
	    <td>Creator:</td>
	    <td><%- fields.profile_creator %></td>
33
	  </tr>
34 35 36 37 38 39
	  <% if (fields.profile_version != 0) { %>
	    <tr>
	      <td>Updated by:</td>
	      <td><%- fields.profile_updater %></td>
	    </tr>
	  <% } %>
40
	  <tr>
41 42 43 44 45
	    <% if (fields.profile_version == 0) { %>
	      <td>Created:</td>
	    <% } else { %>
	      <td>Updated:</td>
	    <% } %>
46 47 48
	    <td class='format-date' style='word-wrap:break-word;'>
	      <%- fields.profile_created %></td>
	  </tr>
Leigh B Stoller's avatar
Leigh B Stoller committed
49
	  <% if (withpublishing) { %>
50
	  <tr>
51 52 53
	    <td>Published:</td>
	    <td id='profile_published' class='format-date'>
	      <%- fields.profile_published %></td>
54
	  </tr>
Leigh B Stoller's avatar
Leigh B Stoller committed
55
	  <% } %>
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
	  <% if (disabled) { %>
	    <tr>
	      <td>Disabled:</td><td><span class="text-danger">Yes</span>
		<a href='#' class='btn btn-xs'
		   data-toggle='popover'
		   data-html='true'
		   data-delay='{"hide":500}'
		   data-content="This profile has been disabled by an
				 administrator. You may be able to instantiate
				 another version of this profile, see the
				 version info above.">
		  <span class='glyphicon glyphicon-question-sign'
			style='margin-bottom: 4px;'></span>
		</a>
	      </td>
	    </tr>
	  <% } %>
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
	</table>
	<% if (history) { %>
	<a class='btn btn-info btn-xs pull-left'
           id='profile_history_button'
           style='margin-right: 10px; font-size: 12px'
           href='profile-history.php?uuid=<%= profile_uuid %>'
           type='button'>Version History
	</a>
	<% } %>
      </div>
    </div>
  </div>
  <div class='col-lg-9
              col-md-9
              col-sm-9
              col-xs-12'>
    <div class='panel panel-default'>
      <div class='panel-body'>
	<div class='panel-body'>
	  <table class='table nospaceafter border-none'>
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
	  <tr>
	    <td>Topology:</td>
	    <td>
		  <button class='btn btn-primary btn-xs
			  type='button'
			  style='margin-right: 10px;'
			  id='edit_topo_modal_button'>
                    Visualize</button>
		  <button class='btn btn-primary btn-xs'
			  type='button'
			  style='margin-right: 10px;'
			  id='show_source_modal_button'>
                    Source</button>
		  <button class='btn btn-primary btn-xs hidden'
			  type='button'
			  style='margin-right: 10px;'
			  id='show_xml_modal_button'>
                    XML</button>
	    </td>
	  </tr>
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
	  <tr>
	    <td>Description:</td>
	    <td>
	      <div style='border: solid #000 1px;'>
		<div id='profile_description'
		     style='padding-left: 2px; padding-right: 2px;'>
		</div>
	      </div>
	    </td>
	  </tr>
	  <tr>
	    <td>Instructions:</td>
	    <td>
	      <div style='border: solid #000 1px;'>
		<div id='profile_instructions'
		     style='padding-left: 2px; padding-right: 2px;'>
		</div>
	      </div>
	    </td>
	  </tr>
133
	  </table>
134
	  <% if (!disabled) { %>
135
	  <button class='btn btn-primary btn-sm pull-right'
136 137 138
             id='profile_instantiate_button'
             style='margin-right: 10px;'
             name='create'>Instantiate
139 140 141 142 143 144
	  </button>
	  <a class='btn btn-primary btn-sm pull-right'
             style='margin-right: 10px;'
             type='button'
	     href='manage_profile.php?action=copy&uuid=<%= version_uuid %>'>
            Copy
145
	  </a>
146
	  <% } %>
147 148 149 150 151 152 153 154
	  <% if (canedit) { %>
	  <a class='btn btn-primary btn-sm pull-right'
             style='margin-right: 10px;'
             type='button'
	     href='manage_profile.php?action=edit&uuid=<%= version_uuid %>'>
            Edit
	  </a>
	  <% } %>
155
	  <% if (!disabled) { %>
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
	  <span class='pull-right''
		data-toggle='popover'
		data-delay='{"hide":1500, "show":250}'
		data-html='true'
		data-content="Share this profile with other users by
			      sending them a link to instantiate it.
			      Click for more info.">
	    <button class='btn btn-info btn-sm'
		    id='profile_share_button'
     		    data-toggle='modal' data-target='#share_profile_modal'
		    style='margin-right: 10px;'
		    type='button'>
              Share
	    </button>
	  </span>
171
	  <% } %>
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
	</div>
      </div>
    </div>
    <textarea name="formfields[profile_rspec]"
	      id='profile_rspec_textarea'
              class='form-control hidden'
              type='textarea'
	      data-key='profile_rspec'
	      rows=5><%- fields.profile_rspec %></textarea>
    <textarea name="formfields[profile_script]"
	      id='profile_script_textarea'
              class='form-control hidden'
              type='textarea'
	      data-key='profile_script'
	      rows=5><%- fields.profile_script %></textarea>
  </div>
  <!-- place to hang the modals  -->
  <div id='showtopomodal_div'></div>
  <div id='editmodal_div'></div>
  <div id='waitwait_div'></div>
  <div id='imaging_div'></div>
  <div id='renderer_div'></div>
  <div id='oops_div'></div>
  <div id='guest_div'></div>
  <div id='publish_div'></div>
  <div id='instantiate_div'></div>
  <div id='rspectext_div'></div>
199
  <div id='share_div'>
200
</div>