C5 5.6.3 looking for help with the registration form

Permalink
I am restyling the registration form to work with my theme but I found two issues that I cannot seem to find the answer for. In fact this should be easy for some but I noticed that it is not several previous versions of C5.

The problem that I am having is that there is a default class attribute with a class of span5 on it. This is causing me problems in the overall designs and would like to find the file associated to either remove that class or modify the option section of the registration form so that it matches seamlessly into the rest of the form.

I'm in a bind here and I have a deadline and would very much like to solve this as soon as possible. Any help would be great.

SoulDesigns
 
digitmaster replied on at Permalink Reply
digitmaster
Hi there,

you will have more chances to get help if you post the html code here.

regards
WebcentricLtd replied on at Permalink Reply
Hi,
/concrete/single_pages/register.php


<div class="<?php if (count($attribs) > 0) {?>span5<?php } else {?>span10<?php } ?> offset1">


or

<div class="span5">


Override that page and alter one of those how you want.
SoulDesigns replied on at Permalink Reply 1 Attachment
SoulDesigns
This is the source code output that is generated to the browser. Notice the "span5" class in the class attribute in the input field. I want to be able to remove that class so that I can style the entire form. This code snippet is for the Last Name field but it does the same thing on the First Name field.

<div class="control-group text last_name">
<label class="control-label" for="akID[24][value]">Last Name</label>
<div class="controls">
<input type="text" class="span5 ccm-input-text" value="" name="akID[24][value]" id="akID[24][value]">
</div>
</div>


This is the code in the register.php page for the single page type.

<?php  if (count($attribs) > 0) { ?>
<div class="span6">
   <fieldset>
      <legend><?php  echo t('Options')?></legend>
   <?php
   $af = Loader::helper('form/attribute');
   foreach($attribs as $ak) { ?> 
         <?php echo $af->display($ak, $ak->isAttributeKeyRequiredOnRegister());   ?>
   <?php }?>
   </fieldset>
</div>
<?php } ?>


I found with some digging the form/attribute.php file but this file has none of the html output codes that I can manipulate to remove that "span5" class.

With the image that I have attached you can see how the Your Details section is uniformed but when you look at the Options section you can see my issue. This issus carries over to the User Profile Edit page.
Steevb replied on at Permalink Reply
Steevb
Copy '/site/concrete/single_pages/register.php' to 'site/single_pages/register.php'. You can then edit the contents.
But to style the page you'll probably have add your styles to 'site/concrete/css/ccm.default.theme.css'.
SoulDesigns replied on at Permalink Reply
SoulDesigns
Maybe I should have stated that this page is in the single page folder. On top of that I have using my theme to site_path so that the register page uses my theme. My problem is that there has to be a file where the HTML is coming from for the second block of code in my earlier posting.

Look at the input tag.
<input type="text" class"span5 ccm-input-text" value="" name"akID[24][value]" id="akID[24][value]">


Within the class attribute is the span5 class. I want the file that the php code calls to remove that class. After that the skies the limit.

What you said I know and have done. But that doesn't remove that particular class.
WebcentricLtd replied on at Permalink Reply
ok,
I get it now. You have added at least one attribute to the user and that is displayed on registration.

The span is being added in:

/concrete/core/models/attribute/types/text,php in the composer function.
SoulDesigns replied on at Permalink Reply
SoulDesigns
This is exactly the info that I was looking for. Thank you.