-
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.
Add lux prefix in various components (#1074)
- Loading branch information
1 parent
8a28fdf
commit aef8501
Showing
16 changed files
with
119 additions
and
119 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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<lux-card id="<%= absence_request.id %>" size="full-width"> | ||
<card-media> | ||
<lux-card-media> | ||
<lux-icon-base | ||
width="50" | ||
height="50" | ||
icon-color="rgb(65, 70, 78)" | ||
><<%= absence_request.absence_type_icon %> /></lux-icon-base> | ||
</card-media> | ||
<card-header> | ||
</lux-card-media> | ||
<lux-card-header> | ||
<lux-heading level="h2" size="h3"><lux-hyperlink href="<%= absence_request_path(absence_request.to_model)%>"><%= absence_request.event_title_brief %></lux-hyperlink></lux-heading> | ||
<lux-text-style><%= absence_request.formatted_full_start_date %> to <%= absence_request.formatted_full_end_date %></lux-text-style> | ||
</card-header> | ||
<card-content class="right-align"> | ||
</lux-card-header> | ||
<lux-card-content class="right-align"> | ||
<lux-tag type="tag" :tag-items="[ | ||
{name: '<%= absence_request.latest_status %>', color: '<%= absence_request.status_color %>'} | ||
]" | ||
horizontal="end" | ||
size="small"></lux-tag> | ||
<lux-text-style type="span" variation="small"><%= absence_request.latest_status_date %></lux-text-style> | ||
</card-content> | ||
</lux-card-content> | ||
</lux-card> |
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,21 +1,21 @@ | ||
<lux-card id="<%= absence_request.id %>" size="full-width"> | ||
<card-media> | ||
<lux-card-media> | ||
<lux-icon-base | ||
width="50" | ||
height="50" | ||
icon-color="rgb(65, 70, 78)" | ||
><<%= absence_request.absence_type_icon %> /></lux-icon-base> | ||
</card-media> | ||
<card-header> | ||
</lux-card-media> | ||
<lux-card-header> | ||
<lux-heading level="h2" size="h3"><lux-hyperlink href="<%= review_absence_request_path(absence_request.to_model)%>"><%= absence_request.creator %> - <%= absence_request.event_title_brief %></lux-hyperlink></lux-heading> | ||
<lux-text-style><%= absence_request.formatted_full_start_date %> to <%= absence_request.formatted_full_end_date %></lux-text-style> | ||
</card-header> | ||
<card-content> | ||
</lux-card-header> | ||
<lux-card-content> | ||
<lux-tag type="tag" :tag-items="[ | ||
{name: '<%= absence_request.latest_status %>', color: '<%= absence_request.status_color %>'} | ||
]" | ||
horizontal="end" | ||
size="small"></lux-tag> | ||
<lux-text-style type="span" variation="small"><%= absence_request.latest_status_date %></lux-text-style> | ||
</card-content> | ||
</lux-card-content> | ||
</lux-card> |
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,46 +1,46 @@ | ||
<div > | ||
|
||
<%= form_with(model: request_change_set.model, local: true, url: decide_absence_request_path(request_change_set.model), method: :put) do |form| %> | ||
<grid-container> | ||
<lux-grid-container> | ||
<% if request_change_set.errors.any? %> | ||
<%=render 'errors', request_change_set: request_change_set%> | ||
<% end %> | ||
|
||
|
||
<grid-item columns="lg-12 sm-12" order="order-lg-1"> | ||
<lux-grid-item columns="lg-12 sm-12" order="order-lg-1"> | ||
<%= render 'title_card', request: request_change_set %> | ||
</grid-item> | ||
</lux-grid-item> | ||
|
||
<grid-item columns="lg-6 sm-12" order="order-lg-2 order-sm-3"> | ||
<lux-grid-item columns="lg-6 sm-12" order="order-lg-2 order-sm-3"> | ||
<%= render 'notes_card', request: request_change_set, render_edit: true %> | ||
</grid-item> | ||
<grid-item columns="lg-6 sm-12" order="order-lg-3 order-sm-2"> | ||
<card size="full-width"> | ||
<card-content> | ||
</lux-grid-item> | ||
<lux-grid-item columns="lg-6 sm-12" order="order-lg-3 order-sm-2"> | ||
<lux-card size="full-width"> | ||
<lux-card-content> | ||
<lux-text-style variation="strong">Team members absent during this time period</lux-text-style> | ||
<ul class="staff"><%= render partial: "shared/absent_staff", collection: request_change_set.absent_staff, as: :staff %></ul> | ||
</card-content> | ||
</card> | ||
</lux-card-content> | ||
</lux-card> | ||
<%= render 'balances', balance_title: request_change_set.balance_title, | ||
vacation_balance: request_change_set.vacation_balance, | ||
personal_balance: request_change_set.personal_balance, | ||
sick_balance: request_change_set.sick_balance %> | ||
|
||
</grid-item> | ||
</lux-grid-item> | ||
|
||
<grid-item columns="lg-12 sm-12" order="order-lg-4 order-sm-4"> | ||
<card size="full-width"> | ||
<card-content> | ||
<lux-grid-item columns="lg-12 sm-12" order="order-lg-4 order-sm-4"> | ||
<lux-card size="full-width"> | ||
<lux-card-content> | ||
<%if action == 'review' %> | ||
<lux-input-button type="submit" variation="solid" name="approve">Approve</lux-input-button> | ||
<lux-input-button type="submit" variation="solid" name="deny">Deny</lux-input-button> | ||
<% else %> | ||
<lux-input-button type="submit" variation="solid" name="comment">Comment</lux-input-button> | ||
<% end %> | ||
</card-content> | ||
</card> | ||
</grid-item> | ||
</lux-card-content> | ||
</lux-card> | ||
</lux-grid-item> | ||
|
||
</grid-container> | ||
</lux-grid-container> | ||
<% end %> | ||
</div> |
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
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
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,13 +1,13 @@ | ||
<card id="<%= delegator.id %>" size="full-width" class="delegate"> | ||
<card-media> | ||
<lux-card id="<%= delegator.id %>" size="full-width" class="delegate"> | ||
<lux-card-media> | ||
<lux-icon-base | ||
width="50" | ||
height="50" | ||
icon-color="rgb(65, 70, 78)" | ||
><lux-icon-person></lux-icon-person></lux-icon-base> | ||
</card-media> | ||
<card-header> | ||
</lux-card-media> | ||
<lux-card-header> | ||
<lux-heading level="h2" size="h3"><lux-hyperlink href="<%= assume_delegate_path(delegator) %>"><%= delegator.delegator %></lux-hyperlink></lux-heading> | ||
<lux-text-style><%= delegator.delegator.uid %></lux-text-style> | ||
</card-header> | ||
</card> | ||
</lux-card-header> | ||
</lux-card> |
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,13 +1,13 @@ | ||
<card id="<%= delegate.id %>" size="full-width" class="delegate"> | ||
<card-media> | ||
<lux-card id="<%= delegate.id %>" size="full-width" class="delegate"> | ||
<lux-card-media> | ||
<%= link_to delegate, method: :delete do %> | ||
<lux-icon-base width="50" height="50" icon-name="Remove Delegate" icon-color="red"> | ||
<lux-icon-denied></lux-icon-denied> | ||
</lux-icon-base> | ||
<% end %> | ||
</card-media> | ||
<card-header> | ||
</lux-card-media> | ||
<lux-card-header> | ||
<lux-heading level="h2" size="h3"><%= delegate.delegate %></lux-heading> | ||
<lux-text-style><%= delegate.delegate.uid %></lux-text-style> | ||
</card-header> | ||
</card> | ||
</lux-card-header> | ||
</lux-card> |
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,36 +1,36 @@ | ||
<wrapper :max-width=1440> | ||
<grid-container> | ||
<grid-item columns="lg-12 sm-12"> | ||
<lux-wrapper :max-width=1440> | ||
<lux-grid-container> | ||
<lux-grid-item columns="lg-12 sm-12"> | ||
<lux-heading level="h1" size="h2">My Delegates</lux-heading> | ||
</grid-item> | ||
</grid-container> | ||
</wrapper> | ||
<wrapper :max-width=1440 class="my-delegates"> | ||
<grid-container> | ||
<grid-item columns="lg-12 sm-12"> | ||
<alert status="info" class="tip-card">Please use this feature with care as it allows other people whom you designate to act on your behalf.</alert> | ||
</grid-item> | ||
<grid-item columns="lg-12 sm-12"> | ||
<card size="full-width" class="search-filter-sort"> | ||
<card-content> | ||
<grid-container> | ||
<grid-item columns="lg-12 sm-12"> | ||
</lux-grid-item> | ||
</lux-grid-container> | ||
</lux-wrapper> | ||
<lux-wrapper :max-width=1440 class="my-delegates"> | ||
<lux-grid-container> | ||
<lux-grid-item columns="lg-12 sm-12"> | ||
<lux-alert status="info" class="tip-card">Please use this feature with care as it allows other people whom you designate to act on your behalf.</lux-alert> | ||
</lux-grid-item> | ||
<lux-grid-item columns="lg-12 sm-12"> | ||
<lux-card size="full-width" class="search-filter-sort"> | ||
<lux-card-content> | ||
<lux-grid-container> | ||
<lux-grid-item columns="lg-12 sm-12"> | ||
<%= render 'form', delegate: @delegate %> | ||
</grid-item> | ||
</grid-container> | ||
</card-content> | ||
</card> | ||
</grid-item> | ||
</grid-container> | ||
<grid-container> | ||
<grid-item columns="lg-12 sm-12"> | ||
</lux-grid-item> | ||
</lux-grid-container> | ||
</lux-card-content> | ||
</lux-card> | ||
</lux-grid-item> | ||
</lux-grid-container> | ||
<lux-grid-container> | ||
<lux-grid-item columns="lg-12 sm-12"> | ||
<% if @delegates.count == 0 %> | ||
<lux-heading id="no-delegates" level="h3" size="h3">You don't have any delegates at the moment.</lux-heading> | ||
<% end %> | ||
<% @delegates.each do |delegate| %> | ||
<%= render 'index_detail', delegate: delegate %> | ||
<% end %> | ||
</grid-item> | ||
</grid-container> | ||
</lux-grid-item> | ||
</lux-grid-container> | ||
</wrapper> | ||
<br/> |
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,23 @@ | ||
<wrapper :max-width=1440> | ||
<grid-container> | ||
<grid-item columns="lg-12 sm-12"> | ||
<lux-wrapper :max-width=1440> | ||
<lux-grid-container> | ||
<lux-grid-item columns="lg-12 sm-12"> | ||
<lux-heading level="h1" size="h2">Act as Delegate for...</lux-heading> | ||
</grid-item> | ||
</grid-container> | ||
</wrapper> | ||
<wrapper :max-width=1440 class="my-delegates"> | ||
<grid-container> | ||
<grid-item columns="lg-12 sm-12"> | ||
<alert status="info" class="tip-card">Please use this feature with care as it allows you to act on someone's behalf.</alert> | ||
</grid-item> | ||
<grid-item columns="lg-12 sm-12"> | ||
</lux-grid-item> | ||
</lux-grid-container> | ||
</lux-wrapper> | ||
<lux-wrapper :max-width=1440 class="my-delegates"> | ||
<lux-grid-container> | ||
<lux-grid-item columns="lg-12 sm-12"> | ||
<lux-alert status="info" class="tip-card">Please use this feature with care as it allows you to act on someone's behalf.</lux-alert> | ||
</lux-grid-item> | ||
<lux-grid-item columns="lg-12 sm-12"> | ||
<% if @delegators.count == 0 %> | ||
<lux-heading id="no-delegates" level="h3" size="h3">You don't have any people you can become at the moment.</lux-heading> | ||
<% end %> | ||
<% @delegators.each do |delegator| %> | ||
<%= render 'assume_detail', delegator: delegator %> | ||
<% end %> | ||
</grid-item> | ||
</grid-container> | ||
</wrapper> | ||
</lux-grid-item> | ||
</lux-grid-container> | ||
</lux-wrapper> | ||
<br/> |
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,8 +1,8 @@ | ||
<wrapper> | ||
<grid-container class="stretch-height"> | ||
<grid-item > | ||
<lux-grid-container class="stretch-height"> | ||
<lux-grid-item > | ||
<lux-text-style variation="default">You must login to view the requested resource.</lux-text-style> | ||
<lux-hyperlink href="/users/auth/cas" variation="button solid" data-method="post" size="large">LOGIN with NetID</lux-hyperlink> | ||
</grid-item> | ||
</grid-container> | ||
</lux-grid-item> | ||
</lux-grid-container> | ||
</wrapper> |
Oops, something went wrong.