Skip to content

Instantly share code, notes, and snippets.

View collinticer's full-sized avatar

Collin Ticer collinticer

View GitHub Profile
@section('left-nav')
<nav class="col-sm-3 d-none d-md-block bg-light sidebar pr-0">
<div class="sidebar-sticky mt-5 text-right">
<ul class="nav flex-column">
@section( 'tasks-left-nav-item' )
<li class="nav-item">
<a class="nav-link" href="{{ route( 'teams.tickets.index', [ 'team' => auth()->user()->recent_team ] ) }}">
Tasks
<i class="fas ml-3 fa-check-double fa-navx text-muted"></i>
</a>
@section('left-nav')
<nav class="col-sm-3 d-none d-md-block bg-light sidebar pr-0">
<div class="sidebar-sticky mt-5 text-right">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link" href="{{ route( 'teams.tickets.index', [ 'team' => auth()->user()->recent_team ] ) }}">
Tasks
<i class="fas ml-3 fa-check-double fa-navx text-muted"></i>
</a>
</li>
@collinticer
collinticer / bad-left-nav-active.blade.php
Created July 1, 2020 04:21
With an active link to overwrite
@section('left-nav')
<nav class="col-sm-3 d-none d-md-block bg-light sidebar pr-0">
<div class="sidebar-sticky mt-5 text-right">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" href="{{ route( 'teams.tickets.index', [ 'team' => auth()->user()->recent_team ] ) }}">
Tasks
<i class="fas ml-3 fa-check-double fa-navx text-muted"></i>
</a>
</li>
@collinticer
collinticer / show.blade.php
Last active July 1, 2020 05:16
An example show route with overwriting a left nav item
@extends( 'layout.app' )
@section( 'tasks-left-nav-item' )
<li class="nav-item">
<a class="nav-link active" href="{{ route( 'teams.tickets.index', [ 'team' => auth()->user()->recent_team ] ) }}">
Tasks <span class="sr-only">(current)</span>
<i class="fas ml-3 fa-check-double fa-navx text-muted"></i>
</a>
</li>
@overwrite
<cfscript>
CSVResultsExport();
</cfscript>
<cffunction name="CSVResultsExport">
<cfscript>
var pc = getpagecontext();
pc.getresponse().setcontenttype( 'text/csv' );
//make sure browsers like IE don't try and open "embedded excel"
cfheader( name="Content-Disposition", value="attachment;filename=voting-results.csv" );
@collinticer
collinticer / scrolly-list.blade.php
Created July 2, 2020 03:31
A proof of concept sales page widget
<div class="card mb-4 shadow-sm">
<div class="card-body">
<div class="row">
<div class="col-12">
<h1 class="card-title pricing-card-title">Item list</h1>
</div>
<div class="col-sm-11 offset-sm-1 col-12">
<div class="card card-body mb-3">
<h2 class="card-title pricing-card-title mb-0" id="customers-check"><i class="fas fa-user text-muted mr-3" id="customers-check-icon"></i>&nbsp;Customers</h2>
</div>
XCTRLSTYLE 2, 3
CONTROLLER 1 OUT ControllerType
IF ControllerType == 4 OR ControllerType == 5 THEN
PRINT "Ah! A wizard just like me!"
ELSE
PRINT "Nothing to see here."
END IF
var prop_list = ds_map_create();
ds_map_add( prop_list, "current_dialog", false );
ds_map_add( prop_list, "in_dialog", false );
ds_map_add( prop_list, "dialogs", ds_list_create() ); //the list of "dialogs" - created via the new_dialog script
return prop_list;
var prop_list = ds_map_create();
ds_map_add( prop_list, "text", "" ); //the text this dialog should show
ds_map_add( prop_list, "type", "click" ); //the progression type of the dialogy. click or delay are the two options so far
ds_map_add( prop_list, "delay", 3 ); //if the type is delay, how many seconds to show the dialog for
return prop_list;