-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecb8a14
commit aecde61
Showing
5 changed files
with
82 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{# fragment to display and allow inline edit of consultant rate for a mission #} | ||
{# context: consultant, rate #} | ||
{% load l10n %} | ||
{% load i18n %} | ||
|
||
<tr> | ||
<td>{% include "people/__consultant_name.html" %}</td> | ||
{% if edit %} | ||
<td align="right"><input id="sold" type="number" step="1" name="sold" value="{{ rate.0.0|unlocalize }}" class="text-end" | ||
hx-post="{% url 'staffing:mission_consultant_rate' mission.id consultant.id %}" autofocus /> | ||
</td> | ||
<td align="right">{% if consultant.subcontractor %}<input id="bought" type="number" step="1" name="bought" value="{{ rate.0.1|unlocalize }}" class="text-end" | ||
hx-post="{% url 'staffing:mission_consultant_rate' mission.id consultant.id %}" />{% endif %} | ||
</td> | ||
{% else %} | ||
<td align="right"><a href="#" hx-get="{% url 'staffing:mission_consultant_rate' mission.id consultant.id %}">{{ rate.0.0 }}</a></td> | ||
<td align="right"><a href="#"hx-get="{% url 'staffing:mission_consultant_rate' mission.id consultant.id %}"> | ||
{% if consultant.subcontractor %}{{ rate.0.1 }}{% endif %}</a></td> | ||
{% endif %} | ||
{% with o_rates=rate.1 %} | ||
{% for date, o_rate in o_rates %} | ||
<td align="right">{{ o_rate|default_if_none:"-" }}</td> | ||
{% endfor %} | ||
{% endwith %} | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters