mirror of https://github.com/gophish/gophish
Fixed "edit" and "copy" buttons on sending profiles datatable
parent
9818410fcf
commit
2dd31c58c3
|
@ -32,7 +32,7 @@
|
||||||
</h1>
|
</h1>
|
||||||
<div id="flashes" class="row"></div>
|
<div id="flashes" class="row"></div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<button type="button" class="btn btn-primary" onclick="edit(-1)" data-toggle="modal" data-target="#newProfileModal"><i class="fa fa-plus"></i> New Profile</button>
|
<button type="button" class="btn btn-primary" onclick="edit(-1)" data-toggle="modal" data-target="#modal"><i class="fa fa-plus"></i> New Profile</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="loading">
|
<div id="loading">
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Modal -->
|
<!-- Modal -->
|
||||||
<div class="modal fade" id="newProfileModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<!-- New Template Modal -->
|
<!-- New Template Modal -->
|
||||||
|
@ -69,36 +69,26 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row" id="modal.flashes"></div>
|
<div class="row" id="modal.flashes"></div>
|
||||||
<label class="control-label" for="name">Name:</label>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<label class="control-label" for="name">Name:</label>
|
||||||
<input type="text" class="form-control" placeholder="Profile name" id="name" autofocus/>
|
<input type="text" class="form-control" placeholder="Profile name" id="name" autofocus/>
|
||||||
</div>
|
<label class="control-label" for="interface_type">Interface Type:</label>
|
||||||
<label class="control-label" for="name">Interface Type:</label>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" class="form-control" value="SMTP" id="interface_type" disabled/>
|
<input type="text" class="form-control" value="SMTP" id="interface_type" disabled/>
|
||||||
</div>
|
<label class="control-label" for="from">From:</label>
|
||||||
<label class="control-label" for="name">From:</label>
|
<input type="text" class="form-control" placeholder="First Last <test@example.com>" id="from" required/>
|
||||||
<div class="form-group">
|
<label class="control-label" for="host">Host:</label>
|
||||||
<input type="text" class="form-control" placeholder="First Last <test@example.com>" id="from" autofocus required/>
|
<input type="text" class="form-control" placeholder="smtp.example.com:25" id="host" required/>
|
||||||
</div>
|
<label class="control-label" for="username">Username:</label>
|
||||||
<label class="control-label" for="name">Host:</label>
|
<input type="text" class="form-control" placeholder="Username" id="username"/>
|
||||||
<div class="form-group">
|
<label class="control-label" for="password">Password:</label>
|
||||||
<input type="text" class="form-control" placeholder="smtp.example.com:25" id="host" autofocus required/>
|
<input type="text" class="form-control" placeholder="Password" id="password"/>
|
||||||
</div>
|
<div class="checkbox checkbox-primary">
|
||||||
<label class="control-label" for="name">Username:</label>
|
<input id="ignore_cert_errors" type="checkbox" checked>
|
||||||
<div class="form-group">
|
<label for="ignore_cert_errors">Ignore Certificate Errors <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="Ignore common certificate errors such as self-signed certs (exposes you to MiTM attacks - use carefully!)"></i></label>
|
||||||
<input type="text" class="form-control" placeholder="Username" id="username" autofocus/>
|
</div>
|
||||||
</div>
|
<!-- <button type="button" data-toggle="modal" data-target="#sendTestEmailModal" class="btn btn-primary"><i class="fa fa-envelope"></i> Send Test Email</button> -->
|
||||||
<label class="control-label" for="name">Password:</label>
|
<!-- disable sendTestEmail functionality on sending profile page until update handling of /util/send_test_email -->
|
||||||
<div class="form-group">
|
</div>
|
||||||
<input type="text" class="form-control" placeholder="Password" id="password" autofocus/>
|
|
||||||
</div>
|
|
||||||
<div class="checkbox checkbox-primary">
|
|
||||||
<input id="ignore_cert_errors" type="checkbox" checked>
|
|
||||||
<label for="ignore_cert_errors">Ignore Certificate Errors <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="Ignore common certificate errors such as self-signed certs (exposes you to MiTM attacks - use carefully!)"></i></label>
|
|
||||||
</div>
|
|
||||||
<!-- <button type="button" data-toggle="modal" data-target="#sendTestEmailModal" class="btn btn-primary"><i class="fa fa-envelope"></i> Send Test Email</button> -->
|
|
||||||
<!-- disable sendTestEmail functionality on sending profile page until update handling of /util/send_test_email -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" data-dismiss="modal" class="btn btn-default" onclick="dismiss()">Cancel</button>
|
<button type="button" data-dismiss="modal" class="btn btn-default" onclick="dismiss()">Cancel</button>
|
||||||
|
|
Loading…
Reference in New Issue