Style updates

This commit is contained in:
snipe 2018-10-05 00:57:18 -07:00
parent 907d1d0f61
commit 4a4fc38c43
5 changed files with 12 additions and 12 deletions

View file

@ -4,7 +4,7 @@
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
<div class="col-md-7{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}"> <div class="col-md-7{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}">
<select class="js-data-ajax" data-endpoint="models" data-placeholder="{{ trans('general.select_model') }}" name="{{ $fieldname }}" style="width: 100%" id="model_select_id"> <select class="js-data-ajax" data-endpoint="models" data-placeholder="{{ trans('general.select_model') }}" name="{{ $fieldname }}" style="width: 100%" id="model_select_id" {!! ((isset($required) && ($required =='true'))) ? ' data-validation="required"' : '' !!}>
@if ($model_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : '')) @if ($model_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))
<option value="{{ $model_id }}" selected="selected"> <option value="{{ $model_id }}" selected="selected">
{{ (\App\Models\AssetModel::find($model_id)) ? \App\Models\AssetModel::find($model_id)->name : '' }} {{ (\App\Models\AssetModel::find($model_id)) ? \App\Models\AssetModel::find($model_id)->name : '' }}

View file

@ -2,7 +2,7 @@
<div class="form-group {{ $errors->has('status_id') ? ' has-error' : '' }}"> <div class="form-group {{ $errors->has('status_id') ? ' has-error' : '' }}">
<label for="status_id" class="col-md-3 control-label">{{ trans('admin/hardware/form.status') }}</label> <label for="status_id" class="col-md-3 control-label">{{ trans('admin/hardware/form.status') }}</label>
<div class="col-md-7 col-sm-11{{ (\App\Helpers\Helper::checkIfRequired($item, 'status_id')) ? ' required' : '' }}"> <div class="col-md-7 col-sm-11{{ (\App\Helpers\Helper::checkIfRequired($item, 'status_id')) ? ' required' : '' }}">
{{ Form::select('status_id', $statuslabel_list , Input::old('status_id', $item->status_id), array('class'=>'select2 status_id', 'style'=>'width:100%','id'=>'status_select_id')) }} {{ Form::select('status_id', $statuslabel_list , Input::old('status_id', $item->status_id), array('class'=>'select2 status_id', 'style'=>'width:100%','id'=>'status_select_id', 'placeholder' => trans('general.select_statuslabel'))) }}
{!! $errors->first('status_id', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!} {!! $errors->first('status_id', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
</div> </div>
<div class="col-md-2 col-sm-2 text-left"> <div class="col-md-2 col-sm-2 text-left">

View file

@ -20,7 +20,7 @@
} }
</style> </style>
{{ Form::open(['method' => 'POST', 'files' => true, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }} {{ Form::open(['method' => 'POST', 'files' => true, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form', 'id' => 'create-form' ]) }}
<!-- CSRF Token --> <!-- CSRF Token -->
{{csrf_field()}} {{csrf_field()}}
@ -45,12 +45,12 @@
<div class="col-md-3"> <div class="col-md-3">
{{ Form::label('site_name', trans('admin/settings/general.site_name')) }} {{ Form::label('site_name', trans('admin/settings/general.site_name')) }}
</div> </div>
<div class="col-md-7"> <div class="col-md-7 required">
@if (config('app.lock_passwords')===true) @if (config('app.lock_passwords')===true)
{{ Form::text('site_name', Input::old('site_name', $setting->site_name), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'Snipe-IT Asset Management')) }} {{ Form::text('site_name', Input::old('site_name', $setting->site_name), array('class' => 'form-control', 'disabled'=>'disabled','placeholder' => 'Snipe-IT Asset Management')) }}
@else @else
{{ Form::text('site_name', {{ Form::text('site_name',
Input::old('site_name', $setting->site_name), array('class' => 'form-control','placeholder' => 'Snipe-IT Asset Management')) }} Input::old('site_name', $setting->site_name), array('class' => 'form-control','placeholder' => 'Snipe-IT Asset Management', 'data-validation' => 'required')) }}
@endif @endif
{!! $errors->first('site_name', '<span class="alert-msg">:message</span>') !!} {!! $errors->first('site_name', '<span class="alert-msg">:message</span>') !!}
</div> </div>

View file

@ -292,7 +292,7 @@
'default' => 'Linear (default)', 'default' => 'Linear (default)',
'half_1' => 'Half-year convention, always applied', 'half_1' => 'Half-year convention, always applied',
'half_2' => 'Half-year convention, applied with condition', 'half_2' => 'Half-year convention, applied with condition',
), Input::old('username_format', $setting->depreciation_method)) }} ), Input::old('username_format', $setting->depreciation_method), ['class' =>'select2', 'style' => 'width: 80%']) }}
</div> </div>
</div> </div>
<!-- /.form-group --> <!-- /.form-group -->

View file

@ -38,7 +38,7 @@
<div class="box-body"> <div class="box-body">
<p style="border-bottom: 0px;"> <p style="padding: 20px;">
{!! trans('admin/settings/general.slack_integration_help',array('slack_link' => 'https://my.slack.com/services/new/incoming-webhook')) !!} {!! trans('admin/settings/general.slack_integration_help',array('slack_link' => 'https://my.slack.com/services/new/incoming-webhook')) !!}
@if (($setting->slack_channel=='') && ($setting->slack_endpoint=='')) @if (($setting->slack_channel=='') && ($setting->slack_endpoint==''))
@ -55,7 +55,7 @@
<div class="col-md-3"> <div class="col-md-3">
{{ Form::label('slack_endpoint', trans('admin/settings/general.slack_endpoint')) }} {{ Form::label('slack_endpoint', trans('admin/settings/general.slack_endpoint')) }}
</div> </div>
<div class="col-md-9"> <div class="col-md-8">
@if (config('app.lock_passwords')===true) @if (config('app.lock_passwords')===true)
{{ Form::text('slack_endpoint', Input::old('slack_endpoint', $setting->slack_endpoint), array('class' => 'form-control','disabled'=>'disabled','placeholder' => 'https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXX')) }} {{ Form::text('slack_endpoint', Input::old('slack_endpoint', $setting->slack_endpoint), array('class' => 'form-control','disabled'=>'disabled','placeholder' => 'https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXX')) }}
@else @else
@ -70,7 +70,7 @@
<div class="col-md-3"> <div class="col-md-3">
{{ Form::label('slack_channel', trans('admin/settings/general.slack_channel')) }} {{ Form::label('slack_channel', trans('admin/settings/general.slack_channel')) }}
</div> </div>
<div class="col-md-9"> <div class="col-md-8">
@if (config('app.lock_passwords')===true) @if (config('app.lock_passwords')===true)
{{ Form::text('slack_channel', Input::old('slack_channel', $setting->slack_channel), array('class' => 'form-control','disabled'=>'disabled','placeholder' => '#IT-Ops')) }} {{ Form::text('slack_channel', Input::old('slack_channel', $setting->slack_channel), array('class' => 'form-control','disabled'=>'disabled','placeholder' => '#IT-Ops')) }}
@else @else
@ -85,7 +85,7 @@
<div class="col-md-3"> <div class="col-md-3">
{{ Form::label('slack_botname', trans('admin/settings/general.slack_botname')) }} {{ Form::label('slack_botname', trans('admin/settings/general.slack_botname')) }}
</div> </div>
<div class="col-md-9"> <div class="col-md-8">
@if (config('app.lock_passwords')===true) @if (config('app.lock_passwords')===true)
{{ Form::text('slack_botname', Input::old('slack_botname', $setting->slack_botname), array('class' => 'form-control','disabled'=>'disabled','placeholder' => 'Snipe-Bot')) }} {{ Form::text('slack_botname', Input::old('slack_botname', $setting->slack_botname), array('class' => 'form-control','disabled'=>'disabled','placeholder' => 'Snipe-Bot')) }}
@else @else
@ -100,10 +100,10 @@
<div class="col-md-3"> <div class="col-md-3">
{{ Form::label('est_slack', 'Test Slack') }} {{ Form::label('est_slack', 'Test Slack') }}
</div> </div>
<div class="col-md-9" id="slacktestrow"> <div class="col-md-8" id="slacktestrow">
<a class="btn btn-default btn-sm pull-left" id="slacktest" style="margin-right: 10px;">Test <i class="fa fa-slack"></i> Integration</a> <a class="btn btn-default btn-sm pull-left" id="slacktest" style="margin-right: 10px;">Test <i class="fa fa-slack"></i> Integration</a>
</div> </div>
<div class="col-md-9 col-md-offset-3"> <div class="col-md-8 col-md-offset-3">
<span id="slacktesticon"></span> <span id="slacktesticon"></span>
<span id="slacktestresult"></span> <span id="slacktestresult"></span>
<span id="slackteststatus"></span> <span id="slackteststatus"></span>