Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
intranet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nounous-archives
intranet
Commits
980575dc
Commit
980575dc
authored
Dec 08, 2015
by
Lucas Serrano
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[printer] Affiche le nom des statut plutôt que le numéro
parent
f0d91cfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
impressions/templates/impressions/imprimante.html
impressions/templates/impressions/imprimante.html
+1
-1
printer/models.py
printer/models.py
+5
-3
No files found.
impressions/templates/impressions/imprimante.html
View file @
980575dc
...
...
@@ -14,7 +14,7 @@
</div>
<div
class=
"six columns"
>
<label>
Statut :
</label>
{{ printer.status }}
<span
class=
"{% if printer.status == 5 %}bad-thing{% endif %}"
>
{{ printer.get_status_display }}
</span>
</div>
</div>
...
...
printer/models.py
View file @
980575dc
...
...
@@ -6,9 +6,11 @@ from snimpy.manager import load
class
Printer
(
models
.
Model
):
STATUS_CHOICES
=
(
(
'???'
,
1
),
(
'running'
,
2
),
(
'warning'
,
3
),
(
1
,
'1???'
),
(
2
,
'running'
),
(
3
,
'warning'
),
(
4
,
'4???'
),
(
5
,
'down'
),
)
name
=
models
.
CharField
(
max_length
=
255
,
editable
=
False
)
domain_name
=
models
.
CharField
(
max_length
=
255
,
unique
=
True
)
...
...
Daniel Stan
@dstan
mentioned in commit
91c233ba
·
Jan 13, 2016
mentioned in commit
91c233ba
mentioned in commit 91c233bad28f701f7fc725541b3a542cbb4a84bb
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment