Sha256: b7798dcf3a1ffa660ff08405f64fd6d2f55a19d3265cc6ae99fc0f4664d101b4

Contents?: true

Size: 516 Bytes

Versions: 9

Compression:

Stored size: 516 Bytes

Contents

<% if RAILS_ENV == 'development' %>
  <% if current_user %>
    <% form_tag generate_template_admin_document_path(@document.id) do %>
      <input type="submit" value="Create Template" />
    <% end %>
    <p style="margin-top: 20px;">The template created will be app/views/pages/<%= @document.meta_definition.label_path.gsub('/', '.') %>.html.erb</p>
  <% else %>
    <p><a href="/login">Login</a> to create a blank template</p>
  <% end %>
<% else %>
  <% raise "No Template Found for #{request.path}" %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
qcms-2.1.0 app/views/pages/default.html.erb
qcms-2.0.0 app/views/pages/default.html.erb
qcms-1.3.10 app/views/pages/default.html.erb
qcms-1.3.9 app/views/pages/default.html.erb
qcms-1.3.8 app/views/pages/default.html.erb
qcms-1.3.7 app/views/pages/default.html.erb
qcms-1.3.6 app/views/pages/default.html.erb
qcms-1.3.5 app/views/pages/default.html.erb
qcms-1.3.3 app/views/pages/default.html.erb