mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
29 lines
1.3 KiB
Text
29 lines
1.3 KiB
Text
.row
|
|
.col-md-3
|
|
= render 'admin/conference/sidebar'
|
|
.col-md-9
|
|
.pull-right
|
|
%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), :method => 'put') 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-dialog
|
|
.modal-content
|
|
.modal-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"}
|
|
Save
|
|
.pull-right
|
|
%button{:class=> "btn btn-danger", "data-dismiss"=> "modal", "aria-hidden"=>"true"}
|
|
Cancel
|