<%= f.text_field :max_grace_days, help_text: "Maximum number of grace days that a student can spend on this assessment. E.g., 2. If left blank, all of the remaining available course grace days can be spent on this assessment." %>

<%= f.score_adjustment_input :late_penalty, optional: true, help_text: "The penalty applied to late submissions after a student runs out of grace days. It represents the number of points or a percentage of the total score removed per day, and must be a non-negative number. If left blank, the course default is used. Example: 15%" %>

<%= f.text_field :version_threshold, help_text: "The number of unpenalized submissions allowed. After this threshold, each additional submission is penalized according to the version penalty. If set to -1, no submissions are penalized. If this is left blank, the course default is used." %>

<%= f.score_adjustment_input :version_penalty, optional: true, help_text: "The penalty applied to submissions with version greater than the version threshold. It represents the number of points or the percentage of the total score removed per version above the threshold, and must be a non-negative number. For example, if this is set to 1 point and the version threshold to 3, the fifth version of a student's submissions would be docked 2 points. If left blank, the course default is used." %>

<div class="action_buttons">
  <%= f.submit "Save" , {:class=>"btn primary"} %>
</div>

<%= f.text_field :max_submissions, help_text: "The maximum number of times a student can submit the assessment.  Set this to -1 to allow unlimited submissions." %>

<%= f.text_field :max_grace_days, help_text: "Maximum number of grace days that a student can spend on this assessment. E.g., 2. If left blank, all of the remaining available course grace days can be spent on this assessment." %>

<%= f.score_adjustment_input :late_penalty, optional: true, help_text: "The penalty applied to late submissions after a student runs out of grace days. It represents the number of points or a percentage of the total score removed per day, and must be a non-negative number. If left blank, the course default is used. Example: 15%" %>

<%= f.text_field :version_threshold, help_text: "The number of unpenalized submissions allowed. After this threshold, each additional submission is penalized according to the version penalty. If set to -1, no submissions are penalized. If this is left blank, the course default is used." %>

<%= f.score_adjustment_input :version_penalty, optional: true, help_text: "The penalty applied to submissions with version greater than the version threshold. It represents the number of points or the percentage of the total score removed per version above the threshold, and must be a non-negative number. For example, if this is set to 1 point and the version threshold to 3, the fifth version of a student's submissions would be docked 2 points. If left blank, the course default is used." %>

<div class="action_buttons">
  <%= f.submit "Save" , {:class=>"btn primary"} %>
</div>

Add Max Submissions field to Assessment editing form
Add Max Submissions field to Assessment editing form
