1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-30 11:24:21 +01:00
fab-manager/app/frontend/templates/shared/signalAbuseModal.html

42 lines
3.1 KiB
HTML
Raw Normal View History

2016-03-23 18:39:41 +01:00
<div class="modal-header">
<img ng-src="{{logoBlack.custom_asset_file_attributes.attachment_url}}" alt="{{logo.custom_asset_file_attributes.attachment}}" class="modal-logo"/>
2019-12-18 11:08:14 +01:00
<h1 translate>{{ 'app.public.projects_show.report_an_abuse' }}</h1>
2016-03-23 18:39:41 +01:00
</div>
<div class="modal-body">
2020-01-06 17:08:50 +01:00
<form role="form" name="signalForm" class="form-horizontal" novalidate autocomplete="off">
2016-03-23 18:39:41 +01:00
<div class="form-group">
<div class="col-sm-6" ng-class="{'has-error': signalForm.first_name.$dirty && signalForm.first_name.$invalid}">
2019-12-18 11:08:14 +01:00
<input type="text" name="first_name" ng-model="signaler.first_name" class="form-control" placeholder="{{ 'app.public.projects_show.your_first_name' | translate }}" required>
<span class="help-block" ng-show="signalForm.first_name.$dirty && signalForm.first_name.$error.required" translate>{{ 'app.public.projects_show.your_first_name_is_required' }}</span>
2016-03-23 18:39:41 +01:00
</div>
<div class="m-b visible-xs"></div>
<div class="col-sm-6" ng-class="{'has-error': signalForm.last_name.$dirty && signalForm.last_name.$invalid}">
2019-12-18 11:08:14 +01:00
<input type="text" name="last_name" ng-model="signaler.last_name" class="form-control" placeholder="{{ 'app.public.projects_show.your_surname' | translate }}" required>
<span class="help-block" ng-show="signalForm.last_name.$dirty && signalForm.last_name.$error.required" translate>{{ 'app.public.projects_show.your_surname_is_required' }}</span>
2016-03-23 18:39:41 +01:00
</div>
</div>
<div class="form-group" ng-class="{'has-error': signalForm.email.$dirty && signalForm.email.$invalid}">
<div class="col-sm-12">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
2019-12-18 11:08:14 +01:00
<input type="email" name="email" ng-model="signaler.email" class="form-control" placeholder="{{ 'app.public.projects_show.your_email_address' | translate }}" required>
2016-03-23 18:39:41 +01:00
</div>
2019-12-18 11:08:14 +01:00
<span class="help-block" ng-show="signalForm.email.$dirty && signalForm.email.$error.required" translate>{{ 'app.public.projects_show.your_email_address_is_required' }}</span>
2016-03-23 18:39:41 +01:00
</div>
</div>
<div class="form-group" ng-class="{'has-error': signalForm.message.$dirty && signalForm.message.$invalid}">
<div class="col-sm-12">
2019-12-18 11:08:14 +01:00
<textarea ng-model="signaler.message" rows="10" class="form-control" id="message" placeholder="{{ 'app.public.projects_show.tell_us_why_this_looks_abusive' | translate }}" name="message" required></textarea>
<span class="help-block" ng-show="signalForm.message.$dirty && signalForm.message.$error.required" translate>{{ 'app.public.projects_show.message_is_required' }}</span>
2016-03-23 18:39:41 +01:00
</div>
</div>
</form>
</div>
<div class="modal-footer">
2019-12-18 11:08:14 +01:00
<button class="btn btn-info" ng-click="ok()" ng-disabled="signalForm.$invalid" translate>{{ 'app.public.projects_show.report' }}</button>
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
2016-03-23 18:39:41 +01:00
</div>