Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
* Hash style
* Quote style
* Brace padding
* Line spacing
* DSL Parenthesis (don't need them for select tag)
  • Loading branch information
garethrees committed Aug 8, 2019
1 parent 6a107f5 commit d052082
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/views/admin_incoming_message/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
<%= render :partial => 'intro', :locals => {:incoming_message => @incoming_message } %>
<%= render :partial => 'actions', :locals => { :incoming_message => @incoming_message } %>
<%= render partial: 'intro', locals: { incoming_message: @incoming_message } %>
<%= render partial: 'actions', locals: { incoming_message: @incoming_message } %>

<fieldset class="form-horizontal">
<legend>Prominence</legend>
<%= form_tag admin_incoming_message_path(@incoming_message), :method => 'put', :class => "form form-inline" do %>

<%= form_tag admin_incoming_message_path(@incoming_message), method: 'put', class: 'form form-inline' do %>
<div class="control-group">
<label class="control-label" for="incoming_message_prominence"> Prominence</label>
<label class="control-label" for="incoming_message_prominence">Prominence</label>

<div class="controls">
<%= select('incoming_message', "prominence", IncomingMessage.prominence_states) %>
<%= select 'incoming_message', 'prominence', IncomingMessage.prominence_states %>
</div>
</div>

<div class="control-group">
<label class="control-label" for="incoming_message_prominence_reason">Reason for prominence</label>

<div class="controls">
<%= text_area "incoming_message", "prominence_reason", :rows => 5, :class => "span6" %>
<%= text_area 'incoming_message', 'prominence_reason', rows: 5, class: 'span6' %>
</div>
</div>

<div class="form-actions" >
<%= submit_tag 'Save', :class => "btn" %>
<%= submit_tag 'Save', class: 'btn' %>
</div>

<% end %>
</fieldset>

0 comments on commit d052082

Please sign in to comment.