mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
PHRAS-2779 #comment fix delete application on account #time 4h
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% block content_account %}
|
{% block content_account %}
|
||||||
<form id="form_create" action="{{ path("submit_developers_application") }}" method="POST" class="form-horizontal">
|
<form id="form_create" action="{{ path("submit_developers_application") }}" method="POST" class="form-horizontal" style="padding: 20px; background: #757575;">
|
||||||
{% if form is none %}
|
{% if form is none %}
|
||||||
{% set name, description, website, callback = "", "", "", "" %}
|
{% set name, description, website, callback = "", "", "", "" %}
|
||||||
{% set app_type = "web" %}
|
{% set app_type = "web" %}
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label for="website" class="control-label"><b>{{ "Site web" | trans }}</b></label>
|
<label for="website" class="control-label"><b>{{ "Site web" | trans }}</b></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<select name="scheme-website" class="input-mini">
|
<select name="scheme-website" class="input-mini" style="min-height: 40px;">
|
||||||
<option value="http://">http://</option>
|
<option value="http://">http://</option>
|
||||||
<option value="https://">https://</option>
|
<option value="https://">https://</option>
|
||||||
</select>
|
</select>
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
<div class="control-group callback-control-group">
|
<div class="control-group callback-control-group">
|
||||||
<label for="callback" class="control-label"><b>{{ "URL de callback" | trans }}</b></label>
|
<label for="callback" class="control-label"><b>{{ "URL de callback" | trans }}</b></label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<select name="scheme-callback" class="input-mini">
|
<select name="scheme-callback" class="input-mini" style="min-height: 40px;">
|
||||||
<option value="http://">http://</option>
|
<option value="http://">http://</option>
|
||||||
<option value="https://">https://</option>
|
<option value="https://">https://</option>
|
||||||
</select>
|
</select>
|
||||||
@@ -110,14 +110,18 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="form-actions">
|
<div class="control-group">
|
||||||
<button class="btn btn-info" type="submit">
|
<div class="col-md-6 controls" style="margin-right: 25px; float: left">
|
||||||
{{ "boutton::valider" | trans }}
|
<a class="btn btn-warning" href="{{ path("developers_applications") }}">
|
||||||
</button>
|
|
||||||
|
|
||||||
<a class="btn" href="{{ path("developers_applications") }}">
|
|
||||||
{{ "boutton::retour" | trans }}
|
{{ "boutton::retour" | trans }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-6" style="width: 50%; float: left">
|
||||||
|
<button class="btn btn-info no-margin" type="submit" style="margin: 0;width: auto;min-width: 200px">
|
||||||
|
{{ "boutton::valider" | trans }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@@ -66,4 +66,25 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
$('a.delete-app').bind('click', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
var $this = $(this);
|
||||||
|
var li = $this.closest('li');
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
type: 'DELETE',
|
||||||
|
url: $this.attr('href'),
|
||||||
|
dataType: 'json',
|
||||||
|
data: {},
|
||||||
|
success: function success(data) {
|
||||||
|
if (data.success) {
|
||||||
|
li.find('.modal').modal('hide');
|
||||||
|
li.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user