Skip to content

Commit

Permalink
Began to style templates#edit forms - I think this might be a good ca…
Browse files Browse the repository at this point in the history
…ndidate for a modal insert
  • Loading branch information
brzaik committed Mar 4, 2012
1 parent 4fd39dc commit ddae4c0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 41 deletions.
23 changes: 1 addition & 22 deletions app/views/screens/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,7 @@
<legend><span><%= t(:select_template) %></span></legend>

<div class="clearfix">
<label><%= t(:current_template) %></label>
<div class="input">
<% if @screen.template %>
<ul class="GL inset-selection small">
<li>
<div>
<div class="cont">
<p><b><%= @screen.template.name %></b></p>
<p>by <%= @screen.template.author %></p>
</div>
<div class="clear"></div>
</div>
</li>
</ul>
<% else %>
<h3>None Selected</h3>
<% end %>
</div>
</div>

<div class="clearfix">
<label><%= t(:select_new_template) %></label>
<label><%= t(:best_fit_templates) %></label>
<div class="input">

<ul class="GL inset-selection small">
Expand Down
51 changes: 33 additions & 18 deletions app/views/templates/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,39 @@
</div>
<% end %>

<div class="field">
<%= f.label :name %><br />
<%= f.text_field :name %>
</div>
<div class="field">
<%= f.label :author %><br />
<%= f.text_field :author %>
</div>
<div class="field">
<%= f.label :is_hidden %><br />
<%= f.check_box :is_hidden %>
</div>
<div class="field">
<%= f.fields_for :media do |media| %>
<%= media.file_field :file %>
<% end %>
</div>
<div class="actions">
<fieldset>
<div class="clearfix">
<%= f.label :name %>
<div class="input">
<%= f.text_field :name %>
</div>
</div>

<div class="clearfix">
<%= f.label :author %>
<div class="input">
<%= f.text_field :author %>
</div>
</div>

<div class="clearfix">
<%= f.label :is_hidden %>
<div class="input">
<%= f.check_box :is_hidden %>
</div>
</div>

<div class="clearfix">
<%= f.label "Upload Background" %>
<div class="input">
<%= f.fields_for :media do |media| %>
<%= media.file_field :file %>
<% end %>
</div>
</div>
</fieldset>

<div class="submit_bar actions">
<%= f.submit %>
</div>
<% end %>
3 changes: 2 additions & 1 deletion config/locales/views/screens/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ en:
provide_details: "Provide Basic Details"
select_template: "Select Template"
current_template: "Current Selection"
select_new_template: "Select New"
best_fit_templates: "Best-Fit Templates"
other_templates: "Other Templates"

0 comments on commit ddae4c0

Please sign in to comment.