Exemple #1
0
 def get_buttons(self):
     buttons = super(ExaminerWithAdminsDiscussView, self).get_buttons()
     buttons.extend([
         PrimarySubmit('examiner_add_comment_for_examiners_and_admins',
                       _('Add note'))
     ])
     return buttons
Exemple #2
0
 def get_buttons(self):
     buttons = super(ExaminerPublicDiscussView, self).get_buttons()
     buttons.extend([
         PrimarySubmit('examiner_add_public_comment',
                       _('Add comment'),
                       css_class='btn btn-default')
     ])
     return buttons
 def get_buttons(self):
     buttons = super(StudentFeedbackFeedView, self).get_buttons()
     buttons.extend([
         PrimarySubmit(
             'student_add_comment',
             _('Add delivery or question')
         )
     ])
     return buttons
Exemple #4
0
 def __get_formhelper(self):
     helper = CradminFormHelper()
     helper.form_class = 'django-cradmin-form-wrapper devilry-django-cradmin-form-wrapper-top-bottom-spacing'
     helper.form_id = 'devilry_admin_create_groups_confirm_form'
     helper.layout = layout.Layout(
         'selected_items',
         PrimarySubmit('add_students', pgettext_lazy('admin create_groups', 'Add students'))
     )
     helper.form_action = self.request.get_full_path()
     return helper
Exemple #5
0
 def get_buttons(self):
     buttons = super(ExaminerFeedbackView, self).get_buttons()
     buttons.extend([
         DefaultSubmit('examiner_add_comment_to_feedback_draft',
                       _('Save draft and preview'),
                       css_class='btn btn-default'),
         PrimarySubmit('examiner_publish_feedback',
                       _('Publish feedback'),
                       css_class='btn btn-primary')
     ])
     return buttons
 def get_button_layout(self):
     return [PrimarySubmit('split', ugettext_lazy('Split'))]
Exemple #7
0
 def get_buttons(self):
     return [PrimarySubmit('add_tags', ugettext_lazy('Add tags'))]
Exemple #8
0
 def get_buttons(self):
     return [
         PrimarySubmit('Next', ugettext_lazy('Next'))
     ]
Exemple #9
0
 def get_buttons(self):
     return [
         PrimarySubmit('Confirm', ugettext_lazy('Confirm'))
     ]
 def get_buttons(self):
     return [PrimarySubmit('submit', self.get_submit_button_text())]
Exemple #11
0
 def get_buttons(self):
     return [
         PrimarySubmit('save', ugettext_lazy('Save')),
     ]
 def get_buttons(self):
     return [
         PrimarySubmit('save', self.create_button_label),
     ]
 def get_buttons(self):
     buttons = [
         PrimarySubmit(self.get_submit_save_button_name(),
                       self.get_submit_save_label())
     ]
     return buttons