|
| 1 | +.row |
| 2 | + .col-xs-9.alert-msg#alerts{style: 'display: none;'} |
| 3 | +.form-horizontal |
| 4 | + .form-group |
| 5 | + .col-xs-offset-2.col-xs-3 |
| 6 | + %h4 |
| 7 | + View the |
| 8 | + %a{href: home_guide_path} |
| 9 | + instructor's guide |
| 10 | + for more information. |
| 11 | + %h4.text-danger All fields are required |
| 12 | + |
| 13 | + .form-group |
| 14 | + = label_tag :organization_select, 'Organization:', class: 'control-label col-xs-1' |
| 15 | + .col-xs-3 |
| 16 | + = collection_select nil, nil, Organization.all.order(:name), :id, :name, { prompt: 'Select', selected: nil }, |
| 17 | + { id: 'organization-select', class: 'form-control' } |
| 18 | + .col-xs-1 |
| 19 | + = link_to admin_organizations_path, title: "Create new organization", class: 'btn btn-default', :target => "_blank" do |
| 20 | + %i.glyphicon.glyphicon-new-window |
| 21 | + |
| 22 | + .form-group |
| 23 | + = label_tag :course_select, 'Course:', class: 'control-label col-xs-1' |
| 24 | + .col-xs-3 |
| 25 | + = collection_select nil, nil, Course.all.order(:slug, :name), :id, :display_name, { prompt: 'Select', selected: nil }, |
| 26 | + { id: 'course-select', class: 'form-control' } |
| 27 | + .col-xs-1 |
| 28 | + = link_to admin_courses_path, title: "Create new course", class: 'btn btn-default', :target => "_blank" do |
| 29 | + %i.glyphicon.glyphicon-new-window |
| 30 | + |
| 31 | + .form-group |
| 32 | + = label_tag :term_select, 'Term:', class: 'control-label col-xs-1' |
| 33 | + .col-xs-3 |
| 34 | + = collection_select nil, nil, Term.on_or_future.order(:starts_on), :id, :display_name, { prompt: 'Select', selected: nil }, |
| 35 | + { id: 'term-select', class: 'form-control' } |
| 36 | + .col-xs-1 |
| 37 | + = link_to admin_terms_path, title: "Create new term", class: 'btn btn-default', :target => "_blank" do |
| 38 | + %i.glyphicon.glyphicon-new-window |
| 39 | + |
| 40 | + .form-group |
| 41 | + = label_tag :name, 'Label', class: 'control-label col-xs-2' |
| 42 | + .col-lg-4.col-md-4.col-xs-4 |
| 43 | + = text_field_tag :name, nil, id: 'label', class: 'form-control', maxlength: 25, |
| 44 | + placeholder: 'e.g. TR 10:00am' |
| 45 | + %small.col-xs-11.text.text-warning |
| 46 | + Write a label for each course section. |
| 47 | + |
| 48 | + .form-group |
| 49 | + = label_tag :inst_book_select, 'Book Instance:', class: 'control-label col-xs-1' |
| 50 | + .col-xs-3 |
| 51 | + = collection_select nil, nil, InstBook.template.order(:title, :created_at), :id, :title_with_created_at, { prompt: 'Select', selected: nil }, |
| 52 | + { id: 'inst-book-select', class: 'form-control' } |
| 53 | + .col-xs-1 |
| 54 | + = link_to admin_inst_books_path, title: "Create new late policy", class: 'btn btn-default', :target => "_blank" do |
| 55 | + %i.glyphicon.glyphicon-new-window |
| 56 | + |
| 57 | + .form-group |
| 58 | + .col-xs-offset-2.col-xs-2 |
| 59 | + - textbook_lms_instance = LmsInstance.find_by(url: "TEXTBOOK") |
| 60 | + %button#btn-gen-textbook.btn.btn-primary{disabled:textbook_lms_instance.blank?} Create Non LMS Textbook |
| 61 | + %small.col-xs-11.text.text-warning |
| 62 | + = textbook_lms_instance.blank? ? 'Textbook LMS Instance not found' : '' |
| 63 | + |
| 64 | + |
| 65 | +#lms-instance-help-modal.modal.fade{role: 'dialog', tabindex: '-1' } |
| 66 | + .modal-dialog.modal-md{ style: 'overflow-y: scroll; max-height:85% margin-top: 50px; margin-bottom:50px;' } |
| 67 | + .modal-content |
| 68 | + .modal-header |
| 69 | + %p.lead LMS Instances Information |
| 70 | + .modal-body |
| 71 | + %table.table |
| 72 | + %thead |
| 73 | + %th Id |
| 74 | + %th URL |
| 75 | + %tbody |
| 76 | + - LmsInstance.all.each do |lms_instance| |
| 77 | + %tr |
| 78 | + %td |
| 79 | + = lms_instance.id |
| 80 | + %td |
| 81 | + = lms_instance.url |
| 82 | + |
| 83 | +#org-help-modal.modal.fade{role: 'dialog', tabindex: '-1' } |
| 84 | + .modal-dialog.modal-md{ style: 'overflow-y: scroll; max-height:85% margin-top: 50px; margin-bottom:50px;' } |
| 85 | + .modal-content |
| 86 | + .modal-header |
| 87 | + %p.lead Organization Information |
| 88 | + .modal-body |
| 89 | + %table.table |
| 90 | + %thead |
| 91 | + %th Id |
| 92 | + %th Name |
| 93 | + %th Abbreviation |
| 94 | + %tbody |
| 95 | + - Organization.all.each do |org| |
| 96 | + %tr |
| 97 | + %td |
| 98 | + = org.id |
| 99 | + %td |
| 100 | + = org.name |
| 101 | + %td |
| 102 | + = org.abbreviation |
| 103 | + |
| 104 | +#course-help-modal.modal.fade{role: 'dialog', tabindex: '-1' } |
| 105 | + .modal-dialog.modal-md{ style: 'overflow-y: scroll; max-height:85% margin-top: 50px; margin-bottom:50px;' } |
| 106 | + .modal-content |
| 107 | + .modal-header |
| 108 | + %p.lead Course Information |
| 109 | + .modal-body |
| 110 | + %table.table |
| 111 | + %thead |
| 112 | + %th Id |
| 113 | + %th Name |
| 114 | + %th Organization |
| 115 | + %tbody |
| 116 | + - Course.all.each do |course| |
| 117 | + %tr |
| 118 | + %td |
| 119 | + = course.id |
| 120 | + %td |
| 121 | + = course.display_name |
| 122 | + %td |
| 123 | + = course.organization.name |
| 124 | + |
| 125 | +#term-help-modal.modal.fade{role: 'dialog', tabindex: '-1' } |
| 126 | + .modal-dialog.modal-md{ style: 'overflow-y: scroll; max-height:85% margin-top: 50px; margin-bottom:50px;' } |
| 127 | + .modal-content |
| 128 | + .modal-header |
| 129 | + %p.lead Term Information |
| 130 | + .modal-body |
| 131 | + %table.table |
| 132 | + %thead |
| 133 | + %th Id |
| 134 | + %th Name |
| 135 | + %th Starts on |
| 136 | + %th Ends on |
| 137 | + %tbody |
| 138 | + - Term.on_or_future.each do |term| |
| 139 | + %tr |
| 140 | + %td |
| 141 | + = term.id |
| 142 | + %td |
| 143 | + = term.display_name |
| 144 | + %td |
| 145 | + = term.starts_on |
| 146 | + %td |
| 147 | + = term.ends_on |
| 148 | + |
| 149 | +#late-policy-help-modal.modal.fade{role: 'dialog', tabindex: '-1' } |
| 150 | + .modal-dialog.modal-md{ style: 'overflow-y: scroll; max-height:85% margin-top: 50px; margin-bottom:50px;' } |
| 151 | + .modal-content |
| 152 | + .modal-header |
| 153 | + %p.lead Late Policy Information |
| 154 | + Late days are the number of days (after deadline) during which the penalty percent will be applied. |
| 155 | + After late days, student submissions will be recorded but they will not be graded. |
| 156 | + .modal-body |
| 157 | + %table.table |
| 158 | + %thead |
| 159 | + %th Id |
| 160 | + %th Name |
| 161 | + %th Late days |
| 162 | + %th Penalty percent |
| 163 | + %tbody |
| 164 | + - LatePolicy.all.each do |late_policy| |
| 165 | + %tr |
| 166 | + %td |
| 167 | + = late_policy.id |
| 168 | + %td |
| 169 | + = late_policy.name |
| 170 | + %td |
| 171 | + = late_policy.late_days |
| 172 | + %td |
| 173 | + = late_policy.late_percent |
| 174 | + |
| 175 | +#inst-book-help-modal.modal.fade{role: 'dialog', tabindex: '-1' } |
| 176 | + .modal-dialog.modal-md{ style: 'overflow-y: scroll; max-height:85% margin-top: 50px; margin-bottom:50px;' } |
| 177 | + .modal-content |
| 178 | + .modal-header |
| 179 | + %p.lead Book Instances Information |
| 180 | + .modal-body |
| 181 | + %table.table |
| 182 | + %thead |
| 183 | + %th Id |
| 184 | + %th Title |
| 185 | + %th Description |
| 186 | + %tbody |
| 187 | + - InstBook.template.each do |inst_book| |
| 188 | + %tr |
| 189 | + %td |
| 190 | + = inst_book.id |
| 191 | + %td |
| 192 | + = inst_book.title |
| 193 | + %td |
| 194 | + = inst_book.desc |
0 commit comments