from booking.stats import StatisticsManager
from booking.forms import HostReImageForm
from workflow.forms import FormUtils
-from api.models import JobFactory
+from api.models import JobFactory, GeneratedCloudConfig
from workflow.views import login
from booking.forms import QuickBookingForm
from booking.quick_deployer import create_from_form, drop_filter
'booking': booking,
'pdf': booking.pdf,
'user_id': user.id,
- 'image_mapping': build_image_mapping(booking.lab, user)
+ 'image_mapping': build_image_mapping(booking.lab, user),
+ 'posix_username': GeneratedCloudConfig._normalize_username(None, user.username)
}
return render(
</div>
<div class="collapse show" id="panel_overview">
<table class="table m-0">
+ <tr>
+ <td>Username</td>
+ <td>{{ posix_username }}</td>
+ </tr>
<tr>
<td>Purpose</td>
<td>{{ booking.purpose }}</td>