fix heading fields only being <h> upon creation

Change text from 'step' to 'page'
This commit is contained in:
scott1702 2015-08-18 17:30:15 +12:00
parent a96d25ce1a
commit 185eec3651
2 changed files with 5 additions and 1 deletions

View File

@ -87,4 +87,8 @@ class EditableFormHeading extends EditableFormField {
public function getSelectorHolder() { public function getSelectorHolder() {
return "$(\":header[data-id='{$this->Name}']\")"; return "$(\":header[data-id='{$this->Name}']\")";
} }
public function getLevel() {
return $this->getField('Level') ?: 3;
}
} }

View File

@ -1,7 +1,7 @@
<% if $Steps.Count > 1 %> <% if $Steps.Count > 1 %>
<div id="userform-progress" class="userform-progress" aria-hidden="true" style="display:none;"> <div id="userform-progress" class="userform-progress" aria-hidden="true" style="display:none;">
<h2 class="progress-title"></h2> <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">
<div class="progress-bar" role="progressbar" aria-valuenow="1" aria-valuemin="1" aria-valuemax="$Steps.Count"></div> <div class="progress-bar" role="progressbar" aria-valuenow="1" aria-valuemin="1" aria-valuemax="$Steps.Count"></div>
</div> </div>