début ajout statut clôture
This commit is contained in:
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"html.validate.scripts": false
|
||||
"editor.minimap.enabled": false
|
||||
"html.validate.scripts": false,
|
||||
"editor.minimap.enabled": false,
|
||||
"python.pythonPath": "C:\\Users\\Thien-An\\AppData\\Local\\Programs\\Python\\Python37\\python.exe"
|
||||
}
|
||||
@@ -19,7 +19,7 @@ pyramid.includes =
|
||||
pyramid_tm
|
||||
|
||||
|
||||
sqlalchemy.url = mysql://root:superbionicle@localhost/bddevfac?charset=utf8
|
||||
sqlalchemy.url = mysql://phuoc:phuoc!@192.168.1.17/bddevfac?charset=utf8
|
||||
# sqlalchemy.url = mysql://phuoc:phuoc!@192.168.0.31/bddevfac?charset=utf8
|
||||
|
||||
mondumas.admin_email = cao.thien-phuoc@orange.fr
|
||||
|
||||
@@ -329,6 +329,20 @@
|
||||
<div class="form-group">
|
||||
<p class="text-center"><b>Voulez-vous clôturer le dossier ?</b></p>
|
||||
</div>
|
||||
<label class="control-label col-xs-4">Sélectionner le type de clôture :</label>
|
||||
<div class="col-xs-8">
|
||||
<label class="radio"><input type="radio" name="type_act" value="annulé" checked>Annulé</label>
|
||||
<label class="radio"><input type="radio" name="type_act" value="refusé">Refusé</label>
|
||||
<label class="radio"><input type="radio" name="type_act" value="en attente">En attente</label>
|
||||
</div>
|
||||
<label class="control-label col-xs-4">Motif :</label>
|
||||
<div class="col-xs-8">
|
||||
<input class="form-control" type="text" id="motif" name="motif" value=""
|
||||
placeholder="65 caractères maximum"
|
||||
data-fv-stringlength="true"
|
||||
data-fv-stringlength-max="65"
|
||||
data-fv-stringlength-message="65 caractères maximum"/>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
||||
<button type="submit" class="btn btn-warning" name="form.close">Clôturer</button>
|
||||
|
||||
@@ -127,6 +127,13 @@ def dossier_view(request):
|
||||
bg_color = "bg-%s" % societe
|
||||
|
||||
if 'form.close' in request.params:
|
||||
|
||||
action = request.params["type_act"]
|
||||
motif = request.params["motif"]
|
||||
|
||||
comment = 'Le dossier est' + action + 'car' + motif
|
||||
insert_suivi(request, nodossier, comment)
|
||||
|
||||
update_dossier_cloture(request, nodossier, logged_in)
|
||||
request.session.flash(u"Le dossier a été cloturé avec succès.", 'success')
|
||||
return HTTPFound(url)
|
||||
|
||||
Reference in New Issue
Block a user