-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added "add database columns" to form builder (#312)
- Loading branch information
1 parent
0250235
commit 5807465
Showing
6 changed files
with
184 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
behaviors/indexmodelformoperations/partials/_add-fields-from-database-popup-form.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?= Form::open([ | ||
'data-builder-command'=>'modelForm:cmdAddFieldsFromDatabase' | ||
]) ?> | ||
|
||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="popup">×</button> | ||
<h4 class="modal-title"><?= e(trans('rainlab.builder::lang.form.btn_add_fields_from_database')) ?></h4> | ||
</div> | ||
|
||
<div class="modal-body"> | ||
<?= $datatable->render(); ?> | ||
</div> | ||
<div class="modal-footer"> | ||
<button | ||
type="submit" | ||
class="btn btn-primary"> | ||
<?= e(trans('backend::lang.form.apply')) ?> | ||
</button> | ||
<button | ||
type="button" | ||
class="btn btn-default" | ||
data-dismiss="popup"> | ||
<?= e(trans('backend::lang.form.cancel')) ?> | ||
</button> | ||
|
||
<input type="hidden" name="plugin_code" value="<?= e($pluginCode) ?>"> | ||
</div> | ||
<?= Form::close() ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters