generated from mlibrary/ruby-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
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
cc384a6
commit b3f758e
Showing
4 changed files
with
80 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@use '../utilities'; | ||
|
||
// -------------------------------------------------- | ||
// | ||
// # Development Users | ||
// Styles to apply directly to `views/partials/_development_users.erb`. | ||
// | ||
// ## Table of Contents | ||
// 1. Variables | ||
// 2. Container | ||
// 3. Form | ||
// | ||
// -------------------------------------------------- | ||
|
||
// ******************** // | ||
// *** 1. VARIABLES *** // | ||
// ******************** // | ||
|
||
$class: "development-users"; | ||
|
||
|
||
|
||
|
||
|
||
// ******************** // | ||
// *** 2. CONTAINER *** // | ||
// ******************** // | ||
|
||
.#{$class} { | ||
margin-top: 1rem; | ||
padding: 1rem; | ||
@media print { | ||
display: none; | ||
} | ||
& > *:first-child { | ||
margin-top: 0; | ||
} | ||
& > *:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
// *************** // | ||
// *** 3. FORM *** // | ||
// *************** // | ||
|
||
.#{$class} form { | ||
.development-users__inputs { | ||
@include utilities.flex(); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
<% test_users=[ { label: "Ann Arbor User" , value: 'mlibrary.acct.testing1@gmail.com' }, { label: 'Flint User' , | ||
value: 'mlibrary.acct.testing2@gmail.com' }, { label: "Dearborn User" , value: 'mlibrary.acct.testing3@gmail.com' }, ] | ||
%> | ||
<% test_users=[ | ||
{ label: "Ann Arbor User" , value: "mlibrary.acct.testing1@gmail.com" }, | ||
{ label: "Flint User" , value: "mlibrary.acct.testing2@gmail.com" }, | ||
{ label: "Dearborn User" , value: "mlibrary.acct.testing3@gmail.com" } | ||
] %> | ||
|
||
<m-callout subtle> | ||
<h2>Design & Development Options</h2> | ||
<form method="get" action="/session_switcher" class="prose owl"> | ||
<label for="test-user"> | ||
Active user account: | ||
</label> | ||
<input type="text" list="users" id="test-user" name="uniqname" autocomplete="on" | ||
value="<%=session[:uniqname] || "" %>"> | ||
<datalist id="users"> | ||
<% test_users.each do |user| %> | ||
<option value="<%=user[:value]%>"> | ||
<%=user[:label]%> | ||
</option> | ||
<% end %> | ||
</datalist> | ||
<button>Save</button> | ||
</form> | ||
</m-callout> | ||
<div class="container__rounded development-users"> | ||
<h2>Design & Development Options</h2> | ||
<form method="get" action="/session_switcher"> | ||
<label for="test-user"> | ||
Active user account: | ||
</label> | ||
<div class="development-users__inputs"> | ||
<input type="text" list="users" id="test-user" name="uniqname" autocomplete="on" value="<%=session[:uniqname] || "" %>"> | ||
<button type="submit">Save</button> | ||
</div> | ||
<datalist id="users"> | ||
<% test_users.each do |user| %> | ||
<option value="<%=user[:value]%>"> | ||
<%=user[:label]%> | ||
</option> | ||
<% end %> | ||
</datalist> | ||
</form> | ||
</div> | ||
|