Skip to content

Commit

Permalink
Format blade templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jglass-st committed Nov 23, 2024
1 parent e865ec5 commit e63aa56
Show file tree
Hide file tree
Showing 13 changed files with 475 additions and 383 deletions.
14 changes: 6 additions & 8 deletions resources/views/concepts/create.blade.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
@extends ('layouts.snac_layout')

@section ('title')
Concepts
@section('title')
Concepts
@endsection
@section ('content')
@section('content')
<h1>New concept:</h1>

<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{env('SNAC_URL')}}/vocab_administrator/dashboard">Vocabulary</a></li>
<li class="breadcrumb-item"><a href="{{ env('SNAC_URL') }}/vocab_administrator/dashboard">Vocabulary</a></li>
<li class="breadcrumb-item active"> New </li>
</ol>
<div class="row">
<div class="col-md-8" id="conceptForm">
<concept-create
id="conceptCreate"
>
</concept-create>
<concept-create id="conceptCreate">
</concept-create>
</div>
<br>
</div>
Expand Down
28 changes: 14 additions & 14 deletions resources/views/concepts/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
@extends ('layouts.snac_layout')

@section ('content')
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
@section('content')
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
<h1>Vocabulary</h1>

<ol class="breadcrumb">
<li><a href="{{env('APP_URL')}}/concepts">Browse Concepts</a></li>
<li><a href="{{ env('APP_URL') }}/concepts">Browse Concepts</a></li>
<!-- <li>{\{data.response.concepts[0].term}}</li> -->
</ol>

{{-- @if (false) #(permissions.EditResources)
{{-- @if (false) #(permissions.EditResources)
@endif
@if ($isVocabularyEditor)
@endif --}}
<div class="row">
<div class="text-left" style="margin-left:40px">
<div class="text-left" style="margin-left:40px">
<a href="{{ env('APP_URL') }}/concepts/search_page" class="btn btn-primary">
Search for Concepts
</a>
</div>
@auth
<div class="text-center" style="margin-left:40px">
<a href="{{ env('APP_URL') }}/concepts/create" class="btn btn-success">
<i class="fa fa-fw fa-plus"></i> Add New Concept
</a>
</div>
<div class="text-center" style="margin-left:40px">
<a href="{{ env('APP_URL') }}/concepts/create" class="btn btn-success">
<i class="fa fa-fw fa-plus"></i> Add New Concept
</a>
</div>
@endauth
</div>

Expand Down
24 changes: 12 additions & 12 deletions resources/views/concepts/search.blade.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
@extends ('layouts.snac_layout')

@section ('content')
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
@section('content')
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif
<h1>Vocabulary</h1>

<ol class="breadcrumb">
<li><a href="{{env('APP_URL')}}/concepts/search_page">Concepts Search</a></li>
<li><a href="{{ env('APP_URL') }}/concepts/search_page">Concepts Search</a></li>
<!-- <li>{\{data.response.concepts[0].term}}</li> -->
</ol>

{{-- @if (false) #(permissions.EditResources)
{{-- @if (false) #(permissions.EditResources)
@endif
@if ($isVocabularyEditor)
@endif --}}

@auth
@auth
<div class="text-center">
{{-- <a href="{{ env('SNAC_URL') }}/vocab_administrator/add_concept" class="btn btn-success"> --}}
<a href="{{ env('APP_URL') }}/concepts/create" class="btn btn-success">
<i class="fa fa-fw fa-plus"></i> Add New Concept
</a>
</div>

@endauth
@endauth


<concept-search></concept-search>
@endsection
<concept-search></concept-search>
@endsection
13 changes: 4 additions & 9 deletions resources/views/concepts/show.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@extends ("layouts.snac_layout")

@section ('content')
@section('content')
@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
Expand All @@ -22,14 +22,9 @@
<div id="concept" data-concept="$concept"></div>

<div id="app">
<concept
id="concept"
:concept-props="{{ $concept }}"
:term-props="{{ $concept->terms }}"
:categories-props="{{ $concept->conceptCategories }}"
:sources-props="{{ $concept->sources }}"
can-edit-vocabulary="{{ json_encode($isVocabularyEditor) }}"
>
<concept id="concept" :concept-props="{{ $concept }}" :term-props="{{ $concept->terms }}"
:categories-props="{{ $concept->conceptCategories }}" :sources-props="{{ $concept->sources }}"
can-edit-vocabulary="{{ json_encode($isVocabularyEditor) }}">
</concept>
</div>
@endsection
63 changes: 27 additions & 36 deletions resources/views/entities/entity_step_1.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@


<script>
window.addEventListener('load', function() {
$('[data-toggle="tooltip"]').tooltip()
window.addEventListener('load', function() {
$('[data-toggle="tooltip"]').tooltip()
})
})
// $(document).ready(function() {
// $('[data-toggle="tooltip"]').tooltip()
Expand All @@ -16,15 +14,14 @@
// $(function () {
// $('[data-toggle="tooltip"]').tooltip()
// })
</script>

@section ('title')
Create an Entity
@section('title')
Create an Entity
@endsection
@section ('content')
@section('content')

{{-- <ol class="breadcrumb">
{{-- <ol class="breadcrumb">
<li><a href="{{env('SNAC_URL')}}/vocab_administrator/dashboard">Vocabulary</a></li>
<li>New</li>
</ol>
Expand All @@ -39,7 +36,7 @@
</div> --}}


{{-- <form class="form-horizontal" id="search_form" method="GET" action="?">
{{-- <form class="form-horizontal" id="search_form" method="GET" action="?">
<div class="well well-lg text-center search-box">
<input type="hidden" id="count" name="count" value="10">
<input type="hidden" id="start" name="start" value="0">
Expand All @@ -66,9 +63,9 @@



<h1>New Person, Family, or Corporate Body</h1>
<h1>New Person, Family, or Corporate Body</h1>
<ol class="breadcrumb">
<li class="breadcrumb-item active"><a href="{{env('MIX_APP_URL')}}/cpf">Entities</a></li>
<li class="breadcrumb-item active"><a href="{{ env('MIX_APP_URL') }}/cpf">Entities</a></li>
{{-- <li class="breadcrumb-item">Relations</li> --}}
</ol>

Expand All @@ -85,16 +82,16 @@
<option>Person</option>
<option>Family</option>
<option>CorporateBody</option> --}}
{{-- <option {{ (isset($repository->company) && $repository->company == 'Apple') ? "selected=\"selected\"" : "" }}></option> --}}
{{-- <option >OralHistoryResource</option> --}}
{{-- </select>
{{-- <option {{ (isset($repository->company) && $repository->company == 'Apple') ? "selected=\"selected\"" : "" }}></option> --}}
{{-- <option >OralHistoryResource</option> --}}
{{-- </select>
</div> --}}





{{-- Person Names --}}
{{-- Person Names --}}
{{-- <div v-show="entityType = 'Person'">
<div class="form-group">
<label for="title" >Last Name</label>
Expand All @@ -120,18 +117,12 @@
</div>
</div> --}}

{{-- --}}
{{-- --}}


{{-- <button type="submit" class="btn btn-primary">Create Relationship</button> --}}

<cpf-form
id="cpfShow"
:cpfprops="true"

:sources-props="true"
can-edit-vocabulary="{{ true }}"
>
<cpf-form id="cpfShow" :cpfprops="true" :sources-props="true" can-edit-vocabulary="{{ true }}">
</cpf-form>


Expand Down Expand Up @@ -249,9 +240,9 @@


{{-- <div class="form-group"> --}}
{{-- Tooltip and placeholder for website, with HTTPS --}}
{{-- <label for="description">General Contact Information</label> --}}
{{-- <input type="text" value="{{ $repository->street_address_1 or '' }}" class="form-control" id="street_address_1" placeholder="Phone, email, etc"> --}}
{{-- Tooltip and placeholder for website, with HTTPS --}}
{{-- <label for="description">General Contact Information</label> --}}
{{-- <input type="text" value="{{ $repository->street_address_1 or '' }}" class="form-control" id="street_address_1" placeholder="Phone, email, etc"> --}}
{{-- </div> --}}
{{-- <div class="form-group">
<label for="description">Phone</label>
Expand All @@ -273,7 +264,7 @@
<language-select :multiple="true"></language-select> --}}


{{--
{{--
<div class="form-group language-input">
<label class="control-label col-xs-2" data-content="hello" data-toggle="popover"
data-placement="top"> Language of Resources</label>
Expand All @@ -284,18 +275,18 @@
</select>
</div> --}}

<div>
{{-- <br>
<div>
{{-- <br>
<button type='button' class="btn btn-success" onclick="$('#website-question').hide();$('#website-fields').show()">Add Language</button> --}}

</div>
<br>
<br>
</div>
<br>
<br>

</div>
</div>


{{-- TODO: Access policy --}}
{{-- TODO: Access policy --}}

@if ($errors->any())
<div class="alert alert-danger">
Expand Down
26 changes: 13 additions & 13 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
@extends('layouts.app')

@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>

<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif

{{ __('You are logged in!') }}
{{ __('You are logged in!') }}
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
27 changes: 17 additions & 10 deletions resources/views/layouts/accept_cookies.blade.php
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
<script>
function setCookie(name,value,days) {
function setCookie(name, value, days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
function getCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(";");
for(var i=0;i < ca.length;i++) {
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0)==" ") c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
while (c.charAt(0) == " ") c = c.substring(1, c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
}
return null;
}
function eraseCookie(name) {
document.cookie = name+"=; Max-Age=-99999999;";
document.cookie = name + "=; Max-Age=-99999999;";
}
document.addEventListener("DOMContentLoaded", function() {
if (!getCookie("acceptprivacy"))
$("#privacyDisplay").show();
});
</script>
<div id="privacyDisplay" style="display: none; min-height: 30px; width: 100%; position: fixed; bottom: 0px; left: 0px; padding: 10px; background: #111111; color: #ffffff; z-index: 99999;">
<div id="privacyDisplay"
style="display: none; min-height: 30px; width: 100%; position: fixed; bottom: 0px; left: 0px; padding: 10px; background: #111111; color: #ffffff; z-index: 99999;">
<div class="row">
<div class="col-md-6">
We use cookies to understand how you use our site and to improve your experience. By continuing to use our site, you accept our use of cookies, <a href="https://portal.snaccooperative.org/terms_and_privacy">Privacy Policy and Terms of Use</a>.
We use cookies to understand how you use our site and to improve your experience. By continuing to use
our site, you accept our use of cookies, <a
href="https://portal.snaccooperative.org/terms_and_privacy">Privacy Policy and Terms of Use</a>.
</div>
<div class="col-md-6 text-right">
<button class="btn btn-info" id="privacyAccept" onClick="setCookie('acceptprivacy', 'true', 90); $('#privacyDisplay').remove();">Accept and Continue</button>
<button class="btn btn-info" id="privacyAccept"
onClick="setCookie('acceptprivacy', 'true', 90); $('#privacyDisplay').remove();">Accept and
Continue</button>
</div>
</div>
</div>
Loading

0 comments on commit e63aa56

Please sign in to comment.