Skip to content

Commit 9dfe2e7

Browse files
committed
if disable return at save, please when enabled why two buttons that confuses the most goofy people
* si salva o vuelve o no vuelve, dos botones que confunden * la gente bruta se confunde y pregunta porque dos botones y a cual le dan, BRRUUTOOSSS!
1 parent 0b6dbc8 commit 9dfe2e7

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

assets/grocery_crud/themes/datatables/views/add.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@
4949
<div id='report-success' class='report-div success'></div>
5050
</div>
5151
<div class='buttons-box'>
52+
<?php if($this->unset_back_to_list) { ?>
5253
<div class='form-button-box'>
5354
<input id="form-button-save" type='submit' value='<?php echo $this->l('form_save'); ?>' class='ui-input-button'/>
5455
</div>
56+
<?php } ?>
5557
<?php if(!$this->unset_back_to_list) { ?>
5658
<div class='form-button-box'>
5759
<input type='button' value='<?php echo $this->l('form_save_and_go_back'); ?>' class='ui-input-button' id="save-and-go-back-button"/>
@@ -74,4 +76,4 @@
7476

7577
var message_alert_add_form = "<?php echo $this->l('alert_add_form')?>";
7678
var message_insert_error = "<?php echo $this->l('insert_error')?>";
77-
</script>
79+
</script>

assets/grocery_crud/themes/datatables/views/edit.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@
5050
<div id='report-success' class='report-div success'></div>
5151
</div>
5252
<div class='buttons-box'>
53+
<?php if($this->unset_back_to_list) { ?>
5354
<div class='form-button-box'>
5455
<input id="form-button-save" type='submit' value='<?php echo $this->l('form_update_changes'); ?>' class='ui-input-button' />
5556
</div>
57+
<?php }?>
5658
<?php if(!$this->unset_back_to_list) { ?>
5759
<div class='form-button-box'>
5860
<input type='button' value='<?php echo $this->l('form_update_and_go_back'); ?>' class='ui-input-button' id="save-and-go-back-button"/>
@@ -75,4 +77,4 @@
7577

7678
var message_alert_edit_form = "<?php echo $this->l('alert_edit_form')?>";
7779
var message_update_error = "<?php echo $this->l('update_error')?>";
78-
</script>
80+
</script>

assets/grocery_crud/themes/flexigrid/views/add.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@
5353
<div id='report-success' class='report-div success'></div>
5454
</div>
5555
<div class="pDiv">
56+
<?php if($this->unset_back_to_list) { ?>
5657
<div class='form-button-box'>
5758
<input id="form-button-save" type='submit' value='<?php echo $this->l('form_save'); ?>' class="btn btn-large"/>
5859
</div>
60+
<?php } ?>
5961
<?php if(!$this->unset_back_to_list) { ?>
6062
<div class='form-button-box'>
6163
<input type='button' value='<?php echo $this->l('form_save_and_go_back'); ?>' id="save-and-go-back-button" class="btn btn-large"/>
@@ -78,4 +80,4 @@
7880

7981
var message_alert_add_form = "<?php echo $this->l('alert_add_form')?>";
8082
var message_insert_error = "<?php echo $this->l('insert_error')?>";
81-
</script>
83+
</script>

assets/grocery_crud/themes/flexigrid/views/edit.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@
5454
<div id='report-success' class='report-div success'></div>
5555
</div>
5656
<div class="pDiv">
57+
<?php if($this->unset_back_to_list) { ?>
5758
<div class='form-button-box'>
5859
<input id="form-button-save" type='submit' value='<?php echo $this->l('form_update_changes'); ?>' class="btn btn-large"/>
5960
</div>
61+
<?php } ?>
6062
<?php if(!$this->unset_back_to_list) { ?>
6163
<div class='form-button-box'>
6264
<input type='button' value='<?php echo $this->l('form_update_and_go_back'); ?>' id="save-and-go-back-button" class="btn btn-large"/>
@@ -79,4 +81,4 @@
7981

8082
var message_alert_edit_form = "<?php echo $this->l('alert_edit_form')?>";
8183
var message_update_error = "<?php echo $this->l('update_error')?>";
82-
</script>
84+
</script>

0 commit comments

Comments
 (0)