style fixes
This commit is contained in:
parent
4a8c2173d4
commit
2966b92319
4 changed files with 35 additions and 24 deletions
|
|
@ -1,27 +1,28 @@
|
|||
.row
|
||||
.col-md-8
|
||||
.pull-right
|
||||
%b= link_to "Create New Question","#", "data-toggle" => "modal", "data-target" => "#new-question", :class => "btn btn-success"
|
||||
%b= link_to 'Create New Question','#', 'data-toggle' => 'modal',
|
||||
'data-target' => '#new-question', class: 'btn btn-success'
|
||||
%br
|
||||
%br
|
||||
- if @questions.count > 0
|
||||
= semantic_form_for(@conference, :url => admin_conference_questions_update_conference_path(@conference.short_title)) do |f|
|
||||
.questions{:id => "myquestions"}
|
||||
= render :partial => "questions"
|
||||
= f.submit "Update Questions for #{@conference.short_title}", :class => "btn btn-primary", :confirm => "Are you sure you want to make these changes?"
|
||||
= semantic_form_for(@conference, url: admin_conference_questions_update_conference_path(@conference.short_title)) do |f|
|
||||
.questions{id: 'myquestions'}
|
||||
= render partial: 'questions'
|
||||
= f.submit "Update Questions for #{@conference.short_title}", class: 'btn btn-primary',
|
||||
confirm: 'Are you sure you want to make these changes?'
|
||||
|
||||
|
||||
.modal.fade{:id => "new-question", "role" => "dialog", "aria-hidden" => "true"}
|
||||
.modal.fade{id: 'new-question', 'role' => 'dialog', 'aria-hidden' => 'true'}
|
||||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%h3{:id => "new-question-header"}
|
||||
%h3{id: 'new-question-header'}
|
||||
Add new question
|
||||
.modal-body
|
||||
= semantic_form_for(@new_question, :url => admin_conference_questions_path(@conference.short_title), :method => :post) do |f|
|
||||
= render :partial => "form", :locals => {:f => f}
|
||||
%button{:class => "btn btn-primary"}
|
||||
= semantic_form_for(@new_question, url: admin_conference_questions_path(@conference.short_title), method: :post) do |f|
|
||||
= render partial: 'form', locals: {f: f}
|
||||
%button{class: 'btn btn-primary'}
|
||||
Save
|
||||
.pull-right
|
||||
%button{:class=> "btn btn-danger", "data-dismiss"=> "modal", "aria-hidden"=>"true"}
|
||||
%button{class: 'btn btn-danger', 'data-dismiss'=> 'modal', 'aria-hidden'=>'true'}
|
||||
Cancel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue