mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2025-12-30 13:07:55 -05:00
* Improve code style and PSR-12 compliance - refactored code formatting to adhere to PSR-12 guidelines - standardized coding conventions across the codebase - added missing framework files and reverted markup changes - reformatted arrays for enhanced readability - updated language files for consistent styling and clarity - minor miscellaneous improvements
59 lines
2.2 KiB
PHP
59 lines
2.2 KiB
PHP
<?= view('partial/header') ?>
|
|
|
|
<script type="text/javascript">
|
|
dialog_support.init("a.modal-dlg");
|
|
</script>
|
|
|
|
<div class="jumbotron" style="max-width: 60%; margin: auto;">
|
|
<?= form_open("messages/send/", ['id' => 'send_sms_form', 'enctype' => 'multipart/form-data', 'method' => 'post', 'class' => 'form-horizontal']) ?>
|
|
<fieldset>
|
|
|
|
<legend style="text-align: center;"><?= lang('Messages.sms_send') ?></legend>
|
|
<div class="form-group form-group-sm">
|
|
<label for="phone" class="col-xs-3 control-label"><?= lang('Messages.phone') ?></label>
|
|
<div class="col-xs-9">
|
|
<input class="form-control input-sm" type="text" name="phone" placeholder="<?= lang('Messages.phone_placeholder') ?>">
|
|
<span class="help-block" style="text-align: center;"><?= lang('Messages.multiple_phones') ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group form-group-sm">
|
|
<label for="message" class="col-xs-3 control-label"><?= lang('Messages.message') ?></label>
|
|
<div class="col-xs-9">
|
|
<textarea class="form-control input-sm" rows="3" id="message" name="message" placeholder="<?= lang('Messages.message_placeholder') ?>"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<?= form_submit([
|
|
'name' => 'submit_form',
|
|
'id' => 'submit_form',
|
|
'value' => lang('Common.submit'),
|
|
'class' => 'btn btn-primary btn-sm pull-right'
|
|
]) ?>
|
|
|
|
</fieldset>
|
|
<?= form_close() ?>
|
|
</div>
|
|
|
|
<?= view('partial/footer') ?>
|
|
|
|
<script type="text/javascript">
|
|
// Validation and submit handling
|
|
$(document).ready(function() {
|
|
$('#send_sms_form').validate({
|
|
submitHandler: function(form) {
|
|
$(form).ajaxSubmit({
|
|
success: function(response) {
|
|
$.notify({
|
|
message: response.message
|
|
}, {
|
|
type: response.success ? 'success' : 'danger'
|
|
})
|
|
},
|
|
dataType: 'json'
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|