mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR: translate pages string in submittedformfield. MINOR: updated unit test to reflect updated template
This commit is contained in:
parent
9d9db9b0fc
commit
d08543f705
@ -23,7 +23,8 @@
|
||||
|
||||
<% if Submissions.MoreThanOnePage %>
|
||||
<div class="userforms-submissions-pagination">
|
||||
<span>Pages: </span>
|
||||
<span><% _t('PAGES', 'Pages') %>:</span>
|
||||
|
||||
<% loop Submissions.Pages() %>
|
||||
<% if CurrentBool %>
|
||||
$PageNum
|
||||
|
@ -31,8 +31,8 @@ class SubmittedFormTest extends FunctionalTest {
|
||||
// check to ensure that the pagination exists
|
||||
$pagination = $parser->getBySelector('.userforms-submissions-pagination');
|
||||
|
||||
$this->assertEquals(str_replace("\n", ' ',(string) $pagination[0]->span), "Viewing rows 0 - 10 of 11 rows");
|
||||
$this->assertEquals(str_replace("\n", ' ',(string) $pagination[0]->a), "Next page");
|
||||
$this->assertEquals(str_replace("\n", ' ',(string) $pagination[0]->span), "Pages:");
|
||||
$this->assertEquals(str_replace("\n", ' ',(string) $pagination[0]->a), "2");
|
||||
|
||||
// ensure the actions exist
|
||||
$actions = $parser->getBySelector('.userforms-submission-actions');
|
||||
|
Loading…
x
Reference in New Issue
Block a user