Skip to content

Commit

Permalink
fix heading fields only being <h> upon creation
Browse files Browse the repository at this point in the history
Change text from 'step' to 'page'
  • Loading branch information
scott1702 committed Aug 18, 2015
1 parent a96d25c commit 185eec3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions code/model/editableformfields/EditableFormHeading.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,8 @@ public function getFieldValidationOptions() {
public function getSelectorHolder() {
return "$(\":header[data-id='{$this->Name}']\")";
}

public function getLevel() {
return $this->getField('Level') ?: 3;
}
}
2 changes: 1 addition & 1 deletion templates/Includes/UserFormProgress.ss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if $Steps.Count > 1 %>
<div id="userform-progress" class="userform-progress" aria-hidden="true" style="display:none;">
<h2 class="progress-title"></h2>
<p>Step <span class="current-step-number">1</span> of <span class="total-step-number">$Steps.Count</span></p>
<p>Page <span class="current-step-number">1</span> of <span class="total-step-number">$Steps.Count</span></p>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="1" aria-valuemin="1" aria-valuemax="$Steps.Count"></div>
</div>
Expand Down

0 comments on commit 185eec3

Please sign in to comment.