mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
fix heading fields only being <h> upon creation
Change text from 'step' to 'page'
This commit is contained in:
parent
a96d25ce1a
commit
185eec3651
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user