Session: Add button names in session creation to facilitate behat testing - refs #2035

pull/2487/head
Yannick Warnier 7 years ago
parent a4c69710b3
commit 86103abaaa
  1. 10
      main/session/add_users_to_session.php

@ -753,7 +753,7 @@ $newLinks .= Display::url(
if ($ajax_search) {
?>
<div class="separate-action">
<button class="btn btn-primary" type="button"
<button name="remove_user" class="btn btn-primary" type="button"
onclick="remove_item(document.getElementById('destination_users'))">
<em class="fa fa-chevron-left"></em>
</button>
@ -762,14 +762,14 @@ $newLinks .= Display::url(
} else {
?>
<div class="separate-action">
<button class="btn btn-primary" type="button"
<button name="add_user" class="btn btn-primary" type="button"
onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))"
onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))">
<em class="fa fa-chevron-right"></em>
</button>
</div>
<div class="separate-action">
<button class="btn btn-primary" type="button"
<button name="remove_user" class="btn btn-primary" type="button"
onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))"
onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))">
<em class="fa fa-chevron-left"></em>
@ -779,10 +779,10 @@ $newLinks .= Display::url(
<?php
}
if (!empty($addProcess)) {
echo '<button class="btn btn-success" type="button" value="" onclick="valide()" >'
echo '<button name="next" class="btn btn-success" type="button" value="" onclick="valide()" >'
.get_lang('FinishSessionCreation').'</button>';
} else {
echo '<button class="btn btn-success" type="button" value="" onclick="valide()" >'
echo '<button name="next" class="btn btn-success" type="button" value="" onclick="valide()" >'
.get_lang('SubscribeUsersToSession').'</button>';
}
?>

Loading…
Cancel
Save