This file contains hidden or 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
| class Franchisee < ActiveRecord::Base | |
| belongs_to :user | |
| has_many :phone_numbers, as: :phoneable, dependent: :destroy | |
| accepts_nested_attributes_for :phone_numbers, allow_destroy: true | |
| validates :region_code, presence: true | |
| end |
This file contains hidden or 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
| def new_information_request(information_request) | |
| @franchise = information_request.franchise | |
| @franchisee = information_request.franchisee | |
| to = @franchise.lead_emails | |
| subject = "#{TENANT['email_prefix']} New Lead" | |
| mail(to: to, subject: subject ) do |format| | |
| format.text | |
| format.html | |
| end |
This file contains hidden or 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
| def find_author(context) | |
| context.present? && context.to_i != 0 ? @authors[context.to_i][:email] : nil | |
| end |
This file contains hidden or 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
| class FranchiseeRequest < ActiveRecord:: Base | |
| attr_accessor :skip_region_validation | |
| attr_accessor :skip_region_validation, as: :import | |
| validate :expanding_into_region, unless: :skip_region_validation | |
| def expanding_into_region | |
| raise error if franchise is not expanding into current region | |
| end |
This file contains hidden or 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
| <?php if($comments) : ?> | |
| <?php foreach($comments as $comment) : ?> | |
| <div class="row"> | |
| <div class="col-md-2"> | |
| <img src="<?php bloginfo('template_directory'); ?>/images/placeholder.png" alt="" class="img-circle comment-author-img"> | |
| </div> <!-- end col-md-2 --> | |
| <div class="col-md-10"> | |
| <div class="post-comment"> | |
| <p class="comment-info"><strong><?php comment_author(); ?></strong> / <span class="comment-time"><?php comment_date('M j'); ?> at <?php comment_time('G:i'); ?></span> / <a href="#">Reply</a></p> | |
| <p><?php comment_text(); ?></p> |
This file contains hidden or 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
| /* Dark Matter Reloaded | |
| * Version 2 - 02/25/2014 | |
| * | |
| * Author: @xupisco - xupisco.net */ | |
| /* Square corners, pls */ | |
| * { | |
| border-radius: 0 !important; | |
| border-top-right-radius: 0 !important; | |
| border-top-left-radius: 0 !important; |
This file contains hidden or 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
| <div class="chat_line"> | |
| <span class="message"> | |
| <span class="author"></span> | |
| <span class="content"></span> | |
| </span> | |
| </div>> |
This file contains hidden or 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
| function createReport(form) { | |
| var success_message; | |
| success_message="Your report will be emailed to you once complete."; | |
| document.getElementById('messageBox').style.color="#4f8a10"; | |
| document.getElementById('messageBox').style.backgroundColor="#dff2bf"; | |
| document.getElementById('messageBox').innerHTML=success_message; | |
| document.getElementById('messageBox').style.visibility="visible"; | |
| document.getElementById('kdgreportselection').innerHTML=""; | |
| document.getElementById('kdgreportselection').style.visibility="hidden"; | |
| $.post('report/KDGReport_createreport.php', $(form).serialize(), |
This file contains hidden or 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
| <body> | |
| <ul> | |
| <li>amariipb</li> | |
| <ul> | |
| <li>Disks<li> | |
| <ul> | |
| </ul> | |
| <li>ARRAY(0x1ce7210)</li> | |
| <li>ARRAY(0x1ce7c00)</li> | |
| <li>ARRAY(0x1cebb50)</li> |
OlderNewer