mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-18 00:40:16 +02:00
Added hrapplications.view_apis
permission
This commit is contained in:
parent
3507275e9d
commit
44e216bb84
@ -24,7 +24,7 @@ class HRApplication(models.Model):
|
|||||||
return self.character_name + " - Application"
|
return self.character_name + " - Application"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
permissions = (('approve_hrapplication', 'Can approve applications'), ('reject_hrapplication', 'Can reject applications'))
|
permissions = (('approve_hrapplication', 'Can approve applications'), ('reject_hrapplication', 'Can reject applications'), ('view_apis', 'Can view applicant APIs'),)
|
||||||
|
|
||||||
|
|
||||||
class HRApplicationComment(models.Model):
|
class HRApplicationComment(models.Model):
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
<input class=" form-control" value="{{ application.character_name }}" disabled>
|
<input class=" form-control" value="{{ application.character_name }}" disabled>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% if perms.hrapplications.view_apis %}
|
||||||
{% for api in apis %}
|
{% for api in apis %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label" for="id_full_api_id">API ID</label>
|
<label class="control-label" for="id_full_api_id">API ID</label>
|
||||||
@ -72,6 +73,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label " for="id_corp">Corp</label>
|
<label class="control-label " for="id_corp">Corp</label>
|
||||||
|
|
||||||
@ -142,12 +144,14 @@
|
|||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div class="row text-center">
|
<div class="row text-center">
|
||||||
|
{% if perms.hrapplications.view_apis %}
|
||||||
{% for api in apis %}
|
{% for api in apis %}
|
||||||
<a href="{{ JACK_KNIFE_URL }}?usid={{ api._api_id }}&apik={{ api.api__key }}"
|
<a href="{{ JACK_KNIFE_URL }}?usid={{ api._api_id }}&apik={{ api.api__key }}"
|
||||||
target="_blank">
|
target="_blank">
|
||||||
<button type="button" class="btn btn-lg btn-primary">API {{ api.api_id }}</button>
|
<button type="button" class="btn btn-lg btn-primary">API {{ api.api_id }}</button>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% if perms.hrapplications.add_hrapplicationcomment %}
|
{% if perms.hrapplications.add_hrapplicationcomment %}
|
||||||
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal"
|
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal"
|
||||||
data-target="#myModal">
|
data-target="#myModal">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user