1d1d29d287
Replaces the vendored app.util.actionMessage/actionConfirm/alert (the latter added ad hoc to fix "app.util.alert is not a function") with the published @simpleworkjs/frontend package: app.messages.action/confirm, app.modal.open, and app.validate.js (which also replaces the identical vendored val.js). Gains real HTML-escaping on message content and a toast fallback when there's no inline .actionMessage target, neither of which the vendored code had. app.api/app.auth/app.pubsub/app.socket in app-base.js are untouched — they're app-specific (dual-mode callback/promise API, auth-token header injection) and not something the generic frontend package's app.js provides, so it isn't loaded here. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
40 lines
969 B
Plaintext
40 lines
969 B
Plaintext
<%- include('top') %>
|
|
<script type="text/javascript">
|
|
function tableAJAX(message){
|
|
app.messages.action(message);
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
$('form').attr('action', 'auth/invite/<%= invite.token %>/<%= invite.mail_token %>').attr('evalAJAX', 'location.replace("/login");')
|
|
$('[name="mail"').val('<%= invite.mail %>').prop("disabled", true);
|
|
});
|
|
</script>
|
|
|
|
<style type="text/css">
|
|
div.form-group:hover {
|
|
-ms-transform: scale(1.02);
|
|
-webkit-transform: scale(1.02);
|
|
transform: scale(1.02);
|
|
}
|
|
</style>
|
|
|
|
<div class="row" style="display:none">
|
|
<div class="col-md-12">
|
|
<div class="card shadow-lg">
|
|
<div class="card-header">
|
|
Add new user
|
|
</div>
|
|
<div class="card-header actionMessage" style="display:none">
|
|
</div>
|
|
<div class="card-body">
|
|
<p>
|
|
Invited By: <b><%= invite.created_by %></b>, <%= invite.created_on %>
|
|
</p>
|
|
<%- include('user_form') %>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<%- include('bottom') %>
|